Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 12, 00:45 UTC
Fix the incorrect parameter order (#6951)
Signed-off-by: cuishuang <imcusg@gmail.com>
cui fliter committed
Apr 13, 2025 at 11:19 UTC
def9db1f16debab582fdc6e1880bbbe9162b3f93
1 file changed
+1
-1
listeners.go
+1
-1
@@ -641,7 +641,7 @@ func RegisterNetwork(network string, getListener ListenerFunc) {
641
if network == "tcp" || network == "tcp4" || network == "tcp6" ||
642
network == "udp" || network == "udp4" || network == "udp6" ||
643
network == "unix" || network == "unixpacket" || network == "unixgram" ||
644
- strings.HasPrefix("ip:", network) || strings.HasPrefix("ip4:", network) || strings.HasPrefix("ip6:", network) ||
644
+ strings.HasPrefix(network, "ip:") || strings.HasPrefix(network, "ip4:") || strings.HasPrefix(network, "ip6:") ||
645
network == "fd" || network == "fdgram" {
646
panic("network type " + network + " is reserved")
647
}