mirror of
https://github.com/jwetzell/osc-go.git
synced 2026-09-09 23:39:28 +00:00
fix variable name
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user