This commit is contained in:
@@ -46,7 +46,7 @@ func (g *RemoteGrain) Connect() error {
|
|||||||
if !strings.Contains(addr, ":") {
|
if !strings.Contains(addr, ":") {
|
||||||
addr = fmt.Sprintf("%s:1337", addr)
|
addr = fmt.Sprintf("%s:1337", addr)
|
||||||
}
|
}
|
||||||
log.Println("Connecting to", addr)
|
log.Printf("Connecting to %s %s", addr, g.Address)
|
||||||
client, err := net.Dial("tcp", addr)
|
client, err := net.Dial("tcp", addr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
@@ -484,7 +484,7 @@ func (p *SyncedPool) AddRemote(address string) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
pool := NewRemoteGrainPool(fmt.Sprintf(address, 1337))
|
pool := NewRemoteGrainPool(address)
|
||||||
remote := RemoteHost{
|
remote := RemoteHost{
|
||||||
connection: connection,
|
connection: connection,
|
||||||
queue: NewPacketQueue(connection),
|
queue: NewPacketQueue(connection),
|
||||||
|
|||||||
Reference in New Issue
Block a user