Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolved #416.
Although
net.Listen("tcp", addr)
display IPv6, it also provides support for IPv4, ref golang/go#9334.$ croc relay [info] 2021/10/01 13:00:34 starting croc relay version v9.3.0-94b2aff [info] 2021/10/01 13:00:34 starting TCP server on :9009 [info] 2021/10/01 13:00:34 starting TCP server on :9012 [info] 2021/10/01 13:00:34 starting TCP server on :9011 [info] 2021/10/01 13:00:34 starting TCP server on :9010 [info] 2021/10/01 13:00:34 starting TCP server on :9013 $ lsof -i :9009 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME main 31243 kallydev 5u IPv6 0x786f7593799ac31b 0t0 TCP *:pichat (LISTEN)
$ croc relay --host :: [info] 2021/10/01 12:59:46 starting croc relay version v9.3.0-94b2aff [info] 2021/10/01 12:59:46 starting TCP server on [::]:9009 [info] 2021/10/01 12:59:46 starting TCP server on [::]:9011 [info] 2021/10/01 12:59:46 starting TCP server on [::]:9010 [info] 2021/10/01 12:59:46 starting TCP server on [::]:9012 [info] 2021/10/01 12:59:46 starting TCP server on [::]:9013 $ lsof -i :9009 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME main 31308 kallydev 5u IPv6 0x786f75937d8c79db 0t0 TCP *:pichat (LISTEN)