Explorar el Código

Fix merge issue

Guillaume J. Charmes hace 12 años
padre
commit
a3293ed854
Se han modificado 2 ficheros con 1 adiciones y 2 borrados
  1. 0 1
      api.go
  2. 1 1
      commands.go

+ 0 - 1
api.go

@@ -662,6 +662,5 @@ func ListenAndServe(addr string, srv *Server, logging bool) error {
 			r.Path(localRoute).Methods(localMethod).HandlerFunc(f)
 			r.Path(localRoute).Methods(localMethod).HandlerFunc(f)
 		}
 		}
 	}
 	}
-
 	return http.ListenAndServe(addr, r)
 	return http.ListenAndServe(addr, r)
 }
 }

+ 1 - 1
commands.go

@@ -36,7 +36,7 @@ func (cli *DockerCli) getMethod(name string) (reflect.Method, bool) {
 }
 }
 
 
 func ParseCommands(addr string, port int, args ...string) error {
 func ParseCommands(addr string, port int, args ...string) error {
-	cli := NewDockerCli("0.0.0.0", 4243)
+	cli := NewDockerCli(addr, port)
 
 
 	if len(args) > 0 {
 	if len(args) > 0 {
 		method, exists := cli.getMethod(args[0])
 		method, exists := cli.getMethod(args[0])