File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
1717func 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 {
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments