mirror of https://github.com/gogs/gogs.git
parent
0c064b1b79
commit
0d6c405ccb
|
@ -683,7 +683,7 @@ func runWeb(c *cli.Context) error {
|
|||
|
||||
// Flag for port number in case first time run conflict.
|
||||
if c.IsSet("port") {
|
||||
conf.Server.URL.Host = strings.Replace(conf.Server.URL.Host, conf.Server.URL.Port(), c.String("port"), 1)
|
||||
conf.Server.URL.Host = strings.Replace(conf.Server.URL.Host, ":"+conf.Server.URL.Port(), ":"+c.String("port"), 1)
|
||||
conf.Server.ExternalURL = conf.Server.URL.String()
|
||||
conf.Server.HTTPPort = c.String("port")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue