Skip to content

Commit f57e6c1

Browse files
committed
完成了,真的可以了
1 parent bc915cc commit f57e6c1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# DEBUG_SETTINGS is used for local test easily.
22
define DEBUG_SETTINGS
33
{
4+
"taskid": 2,
45
"interface": "lo0",
56
"service_port": "8080",
67
"replay_svr_addr": "127.0.0.1:6789"

config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func (c *config) reportDepolyed() {
118118
Addr string `json:"addr"`
119119
}{
120120
TaskID: c.Taskid,
121-
Addr: c.DeviceIPv4,
121+
Addr: fmt.Sprintf("%s:%s", c.DeviceIPv4, c.Port),
122122
}
123123
var apiResp struct {
124124
Err string `json:"err"`

0 commit comments

Comments
 (0)