update
This commit is contained in:
@@ -366,12 +366,16 @@ func (p *SyncedPool) AddRemote(host string) {
|
||||
if host == "" || hasHost {
|
||||
return
|
||||
}
|
||||
// if host == "" || hasHost || host == p.Hostname {
|
||||
// return
|
||||
// }
|
||||
client := NewConnection(fmt.Sprintf("%s:1338", host))
|
||||
_, err := client.Call(Ping, nil)
|
||||
r, err := client.Call(Ping, nil)
|
||||
if err != nil {
|
||||
log.Printf("Error connecting to remote %s: %s\n", host, err)
|
||||
return
|
||||
}
|
||||
log.Printf("Connected to remote %s: %v\n", host, r)
|
||||
|
||||
remote := RemoteHost{
|
||||
Connection: client,
|
||||
|
||||
Reference in New Issue
Block a user