Signed-off-by: mgniu <mgniu@dataman-inc.com>
| ... | ... |
@@ -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 {
|