Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
caddy
Commits
be9f6444
Commit
be9f6444
authored
Nov 07, 2015
by
Matthew Holt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-host and -port flags affect shorthand caddyfile
parent
8628a50b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
main.go
main.go
+1
-1
No files found.
main.go
View file @
be9f6444
...
...
@@ -145,7 +145,7 @@ func loadCaddyfile() (caddy.Input, error) {
// command line args
if
flag
.
NArg
()
>
0
{
confBody
:=
":"
+
caddy
.
Default
Port
+
"
\n
"
+
strings
.
Join
(
flag
.
Args
(),
"
\n
"
)
confBody
:=
caddy
.
Host
+
":"
+
caddy
.
Port
+
"
\n
"
+
strings
.
Join
(
flag
.
Args
(),
"
\n
"
)
return
caddy
.
CaddyfileInput
{
Contents
:
[]
byte
(
confBody
),
Filepath
:
"args"
,
...
...
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