mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-16 12:08:07 +01:00
🎨 桌面端支持同时打开多个工作空间 https://github.com/siyuan-note/siyuan/issues/4567
This commit is contained in:
parent
ae11242a19
commit
7f7386b21f
3 changed files with 4 additions and 4 deletions
|
|
@ -118,9 +118,9 @@ func Serve(fastMode bool) {
|
|||
// 启动一个 6806 端口的反向代理服务器,这样浏览器扩展才能直接使用 127.0.0.1:6806,不用配置端口
|
||||
serverURL, _ := url.Parse("http://" + host + ":" + port)
|
||||
proxy := httputil.NewSingleHostReverseProxy(serverURL)
|
||||
logging.LogInfof("kernel reverse proxy server [%s] is booting", util.FixedPort)
|
||||
logging.LogInfof("reverse proxy server [%s] is booting", util.FixedPort)
|
||||
if proxyErr := http.ListenAndServe(host+":"+util.FixedPort, proxy); nil != proxyErr {
|
||||
logging.LogErrorf("boot kernel reverse proxy server [%s] failed: %s", serverURL, proxyErr)
|
||||
logging.LogWarnf("boot reverse proxy server [%s] failed: %s", serverURL, proxyErr)
|
||||
}
|
||||
// 反代服务器启动失败不影响核心服务器启动
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue