🎨 桌面端内核进程使用随机端口 https://github.com/siyuan-note/siyuan/issues/4952

This commit is contained in:
Liang Ding 2022-10-25 09:44:37 +08:00
parent 7287729b8e
commit d1d9b7a3b2
No known key found for this signature in database
GPG Key ID: 136F30F901A2231D
2 changed files with 1 additions and 5 deletions

View File

@ -603,10 +603,6 @@ const initKernel = (initData) => {
}
const getKernelPort = async () => {
if (isDevEnv) {
return kernelPort
}
await sleep(200)
let gotPort = false
let count = 0

View File

@ -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" // 云端对象存储地址,七牛云,仅用于读取集市包