Skip to content

Commit 9020f78

Browse files
committed
Minor fix: listen for UDP messages on any interface
1 parent c96811c commit 9020f78

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

internal/registration/udp.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ import (
1515
// UDPStatusServer listen for incoming request from other edge-nodes which want to retrieve the status of this server
1616
// this listener should be called asynchronously in the main function
1717
func UDPStatusServer() {
18-
hostname := SelfRegistration.IPAddress
19-
2018
port := config.GetInt(config.LISTEN_UDP_PORT, 9876)
21-
address := fmt.Sprintf("%s:%d", hostname, port)
19+
address := fmt.Sprintf("%s:%d", "0.0.0.0", port)
2220
udpAddr, err := net.ResolveUDPAddr("udp", address)
2321

2422
if err != nil {

utils/etcd.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ func GetEtcdClient() (*clientv3.Client, error) {
3333
return nil, fmt.Errorf("Could not connect to etcd: %v", err)
3434
}
3535

36-
log.Println("Connected to etcd")
37-
3836
etcdClient = cli
3937
return cli, nil
4038
}

0 commit comments

Comments
 (0)