Skip to content

Commit

Permalink
Merge pull request shadowsocks#270 from gyteng/master
Browse files Browse the repository at this point in the history
fix handlePing function
  • Loading branch information
arthurkiller authored Mar 9, 2018
2 parents 921e195 + 1a45684 commit 743b821
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 743b821

Please sign in to comment.