Fix the incorrect parameter order (#6951)

Signed-off-by: cuishuang <imcusg@gmail.com>
This commit is contained in:
cui fliter authored and GitHub committed 2025-04-12 21:19:32 -06:00
1 parent ce926b87ed
commit def9db1f16
1 file changed
+1 -1
+1 -1
View File
@@ -641,7 +641,7 @@ func RegisterNetwork(network string, getListener ListenerFunc) {
if network == "tcp" || network == "tcp4" || network == "tcp6" ||
network == "udp" || network == "udp4" || network == "udp6" ||
network == "unix" || network == "unixpacket" || network == "unixgram" ||
strings.HasPrefix("ip:", network) || strings.HasPrefix("ip4:", network) || strings.HasPrefix("ip6:", network) ||
strings.HasPrefix(network, "ip:") || strings.HasPrefix(network, "ip4:") || strings.HasPrefix(network, "ip6:") ||
network == "fd" || network == "fdgram" {
panic("network type " + network + " is reserved")
}