mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2026-05-22 05:46:30 +03:00
Show both UDP and TCP listen addresses in stdout (#51)
This commit is contained in:
@@ -51,7 +51,7 @@ func (iface *tcpInterface) init(core *Core, addr string) {
|
||||
|
||||
func (iface *tcpInterface) listener() {
|
||||
defer iface.serv.Close()
|
||||
iface.core.log.Println("Listening on:", iface.serv.Addr().String())
|
||||
iface.core.log.Println("Listening for TCP on:", iface.serv.Addr().String())
|
||||
for {
|
||||
sock, err := iface.serv.AcceptTCP()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user