fix
This commit is contained in:
parent
42d35898b5
commit
330e76e09c
|
|
@ -17,7 +17,7 @@ type Comm struct {
|
|||
|
||||
// NewConnection gets a new comm to a tcp address
|
||||
func NewConnection(address string) (c *Comm, err error) {
|
||||
connection, err := net.DialTimeout("tcp", address, 3*time.Second)
|
||||
connection, err := net.DialTimeout("tcp", address, 30*time.Second)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ func (s *server) start() (err error) {
|
|||
|
||||
func (s *server) run() (err error) {
|
||||
log.Debugf("starting TCP server on " + s.port)
|
||||
server, err := net.Listen("tcp", "0.0.0.0:"+s.port)
|
||||
server, err := net.Listen("tcp", ":"+s.port)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "Error listening on :"+s.port)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue