Ver Fonte

fix ConnectToServerX

Joyit há 3 meses atrás
pai
commit
4417c22494
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      hub.go

+ 1 - 1
hub.go

@@ -836,7 +836,7 @@ func (h *Hub) ConnectToServerX(channel string, force bool, host *HostInfo) {
 				log.Println("[ConnectToServerX] not connect host func found")
 				return
 			}
-			hx, err := h.connectHostFunc(channel, Direct)
+			hx, err := h.connectHostFunc(channel, Both)
 			if err == nil {
 				err := h.ConnectToServer(channel, force, hx, true)
 				if err == nil {