🎨 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:
Daniel 2026-01-17 11:41:14 +08:00
parent 3e6e5fa3a4
commit db4b91b757
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
7 changed files with 47 additions and 60 deletions

View file

@ -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)