mirror of
https://github.com/jpillora/chisel
synced 2026-06-08 15:07:02 +00:00
udp listener cleanup, add early port listen checks
This commit is contained in:
@@ -119,7 +119,7 @@ func post(url, body string) (string, error) {
|
||||
}
|
||||
|
||||
func availablePort() string {
|
||||
l, err := net.Listen("tcp4", "127.0.0.1:0")
|
||||
l, err := net.Listen("tcp", "127.0.0.1:0")
|
||||
if err != nil {
|
||||
log.Panic(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user