mirror of https://github.com/v2ray/v2ray-core
return error on listening domain address
parent
9a7177c82c
commit
aa4ab7fa03
|
@ -40,6 +40,10 @@ func ListenTCP(ctx context.Context, address net.Address, port net.Port, settings
|
|||
address = net.LocalHostIP
|
||||
}
|
||||
|
||||
if address.Family().IsDomain() {
|
||||
return nil, newError("domain address is not allowed for listening: ", address.Domain())
|
||||
}
|
||||
|
||||
protocol := settings.ProtocolName
|
||||
listenFunc := transportListenerCache[protocol]
|
||||
if listenFunc == nil {
|
||||
|
|
Loading…
Reference in New Issue