add local port

master
serr 2025-04-07 22:36:25 +03:00
parent c1901320e0
commit 174ae82d3a
2 changed files with 4 additions and 2 deletions

View File

@ -36,9 +36,9 @@ func setupRoutesAndRun(a *models.App) error {
if ok, err := tools.IsIPInUse(a.Config.ServerIP); err != nil { if ok, err := tools.IsIPInUse(a.Config.ServerIP); err != nil {
return err return err
} else if ok { } else if ok {
runServer(a.Config.ServerIP, a.Config.Port, router) runServer(a.Config.ServerIP, a.Config.ServerPort, router)
} else { } else {
runServer(a.Config.LocalIP, a.Config.Port, router) runServer(a.Config.LocalIP, a.Config.LocalPort, router)
} }
return nil return nil

View File

@ -10,7 +10,9 @@ type Config struct {
TemplatesPath string TemplatesPath string
TemplatesExt string TemplatesExt string
LocalIP string LocalIP string
LocalPort string
ServerIP string ServerIP string
ServerPort string
ServerDomain string ServerDomain string
Port string Port string
} }