update
All checks were successful
Build and Publish / BuildAndDeployAmd64 (push) Successful in 28s
Build and Publish / BuildAndDeploy (push) Successful in 2m32s

This commit is contained in:
matst80
2024-11-13 23:12:09 +01:00
parent 0a0fd1738c
commit 78abef7d73
4 changed files with 36 additions and 5 deletions

View File

@@ -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,