fix variable name

This commit is contained in:
Joel Wetzell
2026-01-31 15:52:42 -06:00
parent 5ac60b0685
commit 25c159013b
+3 -3
View File
@@ -12,7 +12,7 @@ import (
) )
func main() { func main() {
var Host string var IP string
var Port int32 var Port int32
var Protocol string var Protocol string
var Format string var Format string
@@ -26,7 +26,7 @@ func main() {
Name: "ip", Name: "ip",
Usage: "ip to receive OSC messages on", Usage: "ip to receive OSC messages on",
Value: "0.0.0.0", Value: "0.0.0.0",
Destination: &Host, Destination: &IP,
}, },
&cli.Int32Flag{ &cli.Int32Flag{
Name: "port", Name: "port",
@@ -66,7 +66,7 @@ func main() {
}, },
}, },
Action: func(ctx context.Context, cmd *cli.Command) error { Action: func(ctx context.Context, cmd *cli.Command) error {
netAddress := fmt.Sprintf("%s:%d", Host, Port) netAddress := fmt.Sprintf("%s:%d", IP, Port)
switch Protocol { switch Protocol {
case "udp": case "udp":
listenUDP(netAddress, Format) listenUDP(netAddress, Format)