Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
848c5d75
Commit
848c5d75
authored
Jan 11, 2014
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed logic for get_url_to_me
parent
4eef5b14
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
main.c
build/main.c
+2
-2
No files found.
build/main.c
View file @
848c5d75
...
...
@@ -137,7 +137,7 @@ static void show_usage_and_exit(void) {
static
const
char
*
config_file_top_comment
=
"# Mongoose web server configuration file.
\n
"
"# For detailed description of every option, visit
\n
"
"# https://github.com/
valenok/mongoose/blob/master/UserManual.md
\n
"
"# https://github.com/
cesanta/mongoose
\n
"
"# Lines starting with '#' and empty lines are ignored.
\n
"
"# To make a change, remove leading '#', modify option's value,
\n
"
"# save this file and then restart Mongoose.
\n\n
"
;
...
...
@@ -148,7 +148,7 @@ static const char *get_url_to_first_open_port(const struct mg_server *server) {
const
char
*
cert
=
mg_get_option
(
server
,
"ssl_certificate"
);
snprintf
(
url
,
sizeof
(
url
),
"%s://%s%s"
,
cert
==
NULL
?
"http"
:
"https
"
,
cert
!=
NULL
&&
cert
[
0
]
!=
'\0'
?
"https"
:
"http
"
,
s
==
NULL
||
strchr
(
s
,
':'
)
==
NULL
?
"127.0.0.1:"
:
""
,
s
);
return
url
;
...
...
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