enable_dev_mode: false # Sets nginx worker_processes to 1 if set to true enable_reuseport: true # Enable nginx SO_REUSEPORT switch if set to true. enable_ipv6: true config_center: etcd # etcd: use etcd to store the config value # yaml: fetch the config value from local yaml file ...
conn, err := w.Dial("tcp", addr) if err != nil { panic(err) } log.Printf("Local address: %s\n", conn.LocalAddr()) buf := make([]byte, 1024) for { select { case <-timer.C: @@ -65,13 +66,12 @@ func main() { default: } n, err := conn.WriteTo(buf, tcpAddr)...