Browse code

use `proto` and `addr` replace `protoAddrParts[0]` and `protoAddrParts[1]`

Signed-off-by: mgniu <mgniu@dataman-inc.com>

mgniu authored on 2016/08/10 17:03:00
Showing 1 changed files
... ...
@@ -242,8 +242,8 @@ func (cli *DaemonCli) start() (err error) {
242 242
 				return err
243 243
 			}
244 244
 		}
245
-		logrus.Debugf("Listener created for HTTP on %s (%s)", protoAddrParts[0], protoAddrParts[1])
246
-		api.Accept(protoAddrParts[1], ls...)
245
+		logrus.Debugf("Listener created for HTTP on %s (%s)", proto, addr)
246
+		api.Accept(addr, ls...)
247 247
 	}
248 248
 
249 249
 	if err := migrateKey(); err != nil {