Explorar o código

fix ConnectToServerX

Joyit hai 3 meses
pai
achega
4417c22494
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {