Skip to content

Commit

Permalink
change name of local-delivery flag
Browse files Browse the repository at this point in the history
  • Loading branch information
synfinatic committed Mar 26, 2023
1 parent 4c7cc80 commit d17329c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ Advanced options:
clients on OpenVPN tunnels if you can't use `--fixed-ip` because clients
don't have a fixed ip.
* `--no-listen` -- Do not listen on the specified UDP port(s) to avoid conflicts
* `--deliver-local` -- Deliver packets locally on loopback interface

There are other flags of course, run `./udp-proxy-2020 --help` for a full list.

Expand Down Expand Up @@ -157,7 +158,7 @@ piece of software that is running on the same host as `udp-proxy-2020`.

### Does udp-proxy-2020 support running on the same host as Roon/etc?

As of v0.1.0, yes. You need to specify `--local-delivery` and `--no-listen`
As of v0.1.0, yes. You need to specify `--deliver-local` and `--no-listen`
options so that it delivers packets via the loopback interface.

### When should I use --pcap and --pcap-path?
Expand Down
4 changes: 2 additions & 2 deletions cmd/udp-proxy-2020/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type CLI struct {
Port []int32 `kong:"short='p',help='One or more UDP ports to process'"`
Timeout int64 `kong:"short='t',default=250,help='Timeout in msec'"`
CacheTTL int64 `kong:"short='T',default=180,help='Client IP cache TTL in minutes'"`
LocalDelivery bool `kong:"short='l',help='Deliver packets locally over loopback'"`
DeliverLocal bool `kong:"short='l',help='Deliver packets locally over loopback'"`
Level string `kong:"short='L',default='info',enum='trace,debug,info,warn,error',help='Log level [trace|debug|info|warn|error]'"`
LogLines bool `kong:"help='Print line number in logs'"`
Logfile string `kong:"default='stderr',help='Write logs to filename'"`
Expand Down Expand Up @@ -85,7 +85,7 @@ func main() {
listeners = append(listeners, l)
}

if cli.LocalDelivery {
if cli.DeliverLocal {
// Create loopback listener
netif, err := net.InterfaceByName(getLoopback())
if err != nil {
Expand Down

0 comments on commit d17329c

Please sign in to comment.