goss-org / goss

Quick and Easy server testing/validation
https://goss.rocks
Apache License 2.0
5.55k stars 473 forks source link

Can we support UDP in addr test #542

Closed weakiwi closed 4 years ago

weakiwi commented 4 years ago

Describe the feature: Addr resource support udp address Describe the solution you'd like specify Localaddr network type by user or according to target

Describe alternatives you've considered https://github.com/aelsabbahy/goss/blob/6abda7e83d9d35129f37278ef5ba8cf864b8be95/system/addr.go#L43 In this line, localaddr use TCPAddr. According to offical docs https://golang.org/pkg/net/#Dialer, LocalAddr should be of a compatible type for the network being dialed

aelsabbahy commented 4 years ago

released