File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 36
36
serverWsPort = server .Flag ("ws-port" , "WebSockets port to run in Server mode" ).Short ('w' ).Int ()
37
37
38
38
client = app .Command ("client" , "Stream output to a server" )
39
- clientAddress = client .Flag ("address" , "Server address" ).Default ("127.0.0.1:1200" ).String ()
39
+ host = client .Flag ("address" , "Server address" ).Default ("127.0.0.1:1200" ).String ()
40
40
clientID = client .Flag ("id" , "ID given to this stream" ).Default ("" ).String ()
41
41
clientNoOutput = client .Flag ("no-output" , "Don't emit any output. Siph re-emits its stdin output by default" ).Bool ()
42
42
)
@@ -81,11 +81,11 @@ func main() {
81
81
case client .FullCommand ():
82
82
consumerOpts := & siphon.ConsumerOptions {
83
83
Id : * clientID ,
84
- Address : * clientAddress ,
84
+ Address : * host ,
85
85
EmitOutput : ! (* clientNoOutput ),
86
86
}
87
87
88
- conn , connErr := getUDPAddress (* clientAddress )
88
+ conn , connErr := getUDPAddress (* host )
89
89
if connErr != nil {
90
90
fmt .Fprintln (os .Stderr , connErr )
91
91
os .Exit (ExitCodeError )
You can’t perform that action at this time.
0 commit comments