1
0

Explicit check for address type, now check if an addr passed is IPv6. Otherwise, network var will remain empty.

This commit is contained in:
Alexander Andreev 2023-08-06 01:21:14 +04:00
parent 5bd6120ae5
commit 72d3104150
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -52,7 +52,7 @@ func main() {
if ap.Addr().Is4() {
network = "tcp4"
} else {
} else if ap.Addr().Is6() {
network = "tcp6"
}
}