mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-27 10:46:09 +01:00
🎨 Improve the network serve address list https://github.com/siyuan-note/siyuan/issues/14943
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
3e6e5fa3a4
commit
db4b91b757
7 changed files with 47 additions and 60 deletions
|
|
@ -198,6 +198,9 @@ func Serve(fastMode bool, cookieKey string) {
|
|||
}
|
||||
util.ServerPort = port
|
||||
|
||||
model.Conf.ServerAddrs = util.GetServerAddrs()
|
||||
model.Conf.Save()
|
||||
|
||||
util.ServerURL, err = url.Parse("http://127.0.0.1:" + port)
|
||||
if err != nil {
|
||||
logging.LogErrorf("parse server url failed: %s", err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue