Skip to content

Commit adf8404

Browse files
committed
Fix CLI arg mode not working properly. Fix ##665
1 parent 8e722c0 commit adf8404

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func init() {
2727
Flags: func() *flag.FlagSet {
2828
fs := flag.NewFlagSet("docker-proxy", flag.ExitOnError)
2929

30-
fs.Bool("mode", false,
30+
fs.String("mode", "standalone",
3131
"Which mode this instance should run: standalone | controller | server")
3232

3333
fs.String("docker-sockets", "",
@@ -169,7 +169,6 @@ func createOptions(flags caddycmd.Flags) *config.Options {
169169
switch mode {
170170
case "controller":
171171
options.Mode = config.Controller
172-
break
173172
case "server":
174173
options.Mode = config.Server
175174
default:

0 commit comments

Comments
 (0)