Commit e4344518 by Bogdan Ungureanu

Adding http port to config

parent 3496093b
......@@ -17,7 +17,7 @@ type GPSServerConfig struct { // GPS Server Config
db_port int
db_db string
http_addr string
http_port int
http_port int64
http_root string
}
......@@ -49,6 +49,10 @@ func (c *GPSServerConfig) LoadConfig() error {
c.http_addr, err = conf.GetString("server", "address")
}
if conf.HasOption("server", "port") {
c.http_port, err = conf.GetInt64("server", "port")
}
if conf.HasOption("server", "httpdocs") {
c.http_root, err = conf.GetString("server", "httpdocs")
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment