Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gpsd
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Bogdan Ungureanu
gpsd
Commits
e4344518
Commit
e4344518
authored
Aug 04, 2015
by
Bogdan Ungureanu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding http port to config
parent
3496093b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
server_config.go
server_config.go
+5
-1
No files found.
server_config.go
View file @
e4344518
...
...
@@ -17,7 +17,7 @@ type GPSServerConfig struct { // GPS Server Config
db_port
int
db_db
string
http_addr
string
http_port
int
http_port
int
64
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"
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment