mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-23 16:56:10 +01:00
🎨 Unable to switch the publish service between multiple workspaces https://github.com/siyuan-note/siyuan/issues/16587
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
d1422ea0df
commit
ffd4ceb0d9
2 changed files with 51 additions and 45 deletions
|
|
@ -171,10 +171,10 @@ func initHttpClient() {
|
|||
}
|
||||
|
||||
func ParsePort(portString string) (uint16, error) {
|
||||
if port, err := strconv.ParseUint(portString, 10, 16); err != nil {
|
||||
port, err := strconv.ParseUint(portString, 10, 16)
|
||||
if err != nil {
|
||||
logging.LogErrorf("parse port [%s] failed: %s", portString, err)
|
||||
return 0, err
|
||||
} else {
|
||||
return uint16(port), nil
|
||||
}
|
||||
return uint16(port), nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue