Skip to content

Commit

Permalink
fix handlePing function
Browse files Browse the repository at this point in the history
  • Loading branch information
gyteng committed Mar 7, 2018
1 parent 921e195 commit 1a45684
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cmd/shadowsocks-server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -585,12 +585,7 @@ func handleRemovePort(payload []byte) []byte {
}

func handlePing() []byte {
stats := passwdManager.getFlowStats()
var buf bytes.Buffer
buf.WriteString("stat: ")
ret, _ := json.Marshal(stats)
buf.Write(ret)
return buf.Bytes()
return []byte("pong")
}

func parsePortNum(in interface{}) string {
Expand Down

0 comments on commit 1a45684

Please sign in to comment.