feat: support SCTP & UDP as endpoint type (#352)

* feat: support SCTP & UDP as endpoint type

* update README

* modify endpoint type test for sctp & udp
This commit is contained in:
Ian Chen
2022-11-10 08:22:13 +08:00
committed by GitHub
parent 1f84f2afa0
commit fa47a199e5
17 changed files with 1760 additions and 0 deletions

View File

@ -283,6 +283,18 @@ func TestEndpoint_Type(t *testing.T) {
},
want: EndpointTypeICMP,
},
{
args: args{
URL: "sctp://example.com",
},
want: EndpointTypeSCTP,
},
{
args: args{
URL: "udp://example.com",
},
want: EndpointTypeUDP,
},
{
args: args{
URL: "starttls://smtp.gmail.com:587",