瀏覽代碼

fix ConnectToServerX

Joyit 3 月之前
父節點
當前提交
4417c22494
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 {