update example

This commit is contained in:
ginuerzh
2023-09-30 17:49:33 +08:00
parent 8bc0679b5c
commit bc86458bf2
3 changed files with 56 additions and 1 deletions

View File

@ -77,7 +77,7 @@ func main() {
w.WriteHeader(http.StatusBadRequest)
return
}
log.Printf("hop: %s %s %s %s", rb.Network, rb.Addr, rb.Host, rb.Client)
log.Printf("hop: network=%s addr=%s host=%s client=%s", rb.Network, rb.Addr, rb.Host, rb.Client)
node := nodes[counter.Add(1)%uint64(len(nodes))]
v, _ := json.Marshal(node)