X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcmd%2Fnncp-cfgnew%2Fmain.go;h=f9926010d3d7e5a68d4cda93286314832c7dd715;hb=0fad171c0d79ad583c0faf5427e22d1d62a0a52d;hp=a1358add583e3fd0fadb6124047d70e243bc9e04;hpb=fa24572f1280b56977c6dcf6969a736403d1280e;p=nncp.git diff --git a/src/cmd/nncp-cfgnew/main.go b/src/cmd/nncp-cfgnew/main.go index a1358ad..f992601 100644 --- a/src/cmd/nncp-cfgnew/main.go +++ b/src/cmd/nncp-cfgnew/main.go @@ -21,9 +21,10 @@ package main import ( "flag" "fmt" + "log" "os" - "go.cypherpunks.ru/nncp/v5" + "go.cypherpunks.ru/nncp/v7" ) func usage() { @@ -38,6 +39,7 @@ func main() { version = flag.Bool("version", false, "Print version information") warranty = flag.Bool("warranty", false, "Print warranty information") ) + log.SetFlags(log.Lshortfile) flag.Usage = usage flag.Parse() if *warranty { @@ -104,6 +106,14 @@ func main() { # umask: "022" # Omit progress showing by default # noprogress: true + # Do not use .hdr files + # nohdr: true + + # MultiCast Discovery: + # List of interfaces where to listen for MCD announcements + # mcd-listen: ["em0", "igb1"] + # Interfaces and intervals (in seconds) where to send MCD announcements + # mcd-send: {em0: 60, igb1: 5} # Enable notification email sending # notify: { @@ -210,6 +220,16 @@ func main() { # # txrate: 20 # # xx: rx # # addr: lan + # # when-tx-exists: true + # # nock: true + # # mcd-ignore: true + # # + # # autotoss: false + # # autotoss-doseen: true + # # autotoss-nofile: true + # # autotoss-nofreq: true + # # autotoss-noexec: true + # # autotoss-notrns: true # # }, # # ] # }