mirror of
https://github.com/caddyserver/caddy.git
synced 2025-04-22 05:40:22 +03:00
Fix the incorrect parameter order (#6951)
Signed-off-by: cuishuang <imcusg@gmail.com>
This commit is contained in:
parent
ce926b87ed
commit
def9db1f16
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue