conn: add CopyN function

This commit is contained in:
nadoo committed 2020-10-01 21:33:59 +08:00
1 parent c01c2d1839
commit 47e20cf7f4
4 files changed
+28 -4

No files matched your search

+5
View File
@@ -313,4 +313,9 @@ func usage() {
fmt.Fprintf(w, " "+app+" -verbose -dns=:53 -dnsserver=8.8.8.8:53 -dnsrecord=www.example.com/1.2.3.4\n")
fmt.Fprintf(w, " -listen on :53 as dns server, forward dns requests to 8.8.8.8:53, return 1.2.3.4 when resolving www.example.com.\n")
fmt.Fprintf(w, "\n")
fmt.Fprintf(w, "Services:\n")
fmt.Fprintf(w, " dhcpd: service=dhcpd,INTERFACE,START_IP,END_IP\n")
fmt.Fprintf(w, " e.g.,service=dhcpd,en0,192.168.254.100,192.168.254.199\n")
fmt.Fprintf(w, "\n")
}