From d1d9b7a3b25b14d1441b931ed3f90bc918a1166e Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 25 Oct 2022 09:44:37 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=A1=8C=E9=9D=A2=E7=AB=AF=E5=86=85?= =?UTF-8?q?=E6=A0=B8=E8=BF=9B=E7=A8=8B=E4=BD=BF=E7=94=A8=E9=9A=8F=E6=9C=BA?= =?UTF-8?q?=E7=AB=AF=E5=8F=A3=20https://github.com/siyuan-note/siyuan/issu?= =?UTF-8?q?es/4952?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/electron/main.js | 4 ---- kernel/util/path.go | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app/electron/main.js b/app/electron/main.js index 4ba960405..1000b980d 100644 --- a/app/electron/main.js +++ b/app/electron/main.js @@ -603,10 +603,6 @@ const initKernel = (initData) => { } const getKernelPort = async () => { - if (isDevEnv) { - return kernelPort - } - await sleep(200) let gotPort = false let count = 0 diff --git a/kernel/util/path.go b/kernel/util/path.go index 9f3d6bd4a..04dd913d6 100644 --- a/kernel/util/path.go +++ b/kernel/util/path.go @@ -34,7 +34,7 @@ var ( ) const ( - ServerPort = "6806" // HTTP/WebSocket 端口 + ServerPort = "0" // HTTP/WebSocket 端口 AliyunServer = "https://siyuan-sync.b3logfile.com" // 云端服务地址,阿里云负载均衡,用于接口,数据同步文件上传、下载会走七牛云 OSS http://siyuan-data.b3logfile.com BazaarStatServer = "http://bazaar.b3logfile.com" // 集市包统计服务地址,直接对接 Bucket 没有 CDN 缓存 BazaarOSSServer = "https://oss.b3logfile.com" // 云端对象存储地址,七牛云,仅用于读取集市包