From 26606c69631e8ac402d7d40a542621105e4a5880 Mon Sep 17 00:00:00 2001 From: Craig Date: Fri, 14 Feb 2020 03:55:36 +0000 Subject: [PATCH] change misleading name --- server/internal/types/config/webrtc.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/internal/types/config/webrtc.go b/server/internal/types/config/webrtc.go index ad46129a..b2d1a354 100644 --- a/server/internal/types/config/webrtc.go +++ b/server/internal/types/config/webrtc.go @@ -94,8 +94,8 @@ func (WebRTC) Init(cmd *cobra.Command) error { return err } - cmd.PersistentFlags().StringSlice("ip", []string{}, "sets a list of external IP addresses of 1:1 (D)NAT and a candidate type for which the external IP address is used") - if err := viper.BindPFlag("ip", cmd.PersistentFlags().Lookup("ip")); err != nil { + cmd.PersistentFlags().StringSlice("nat1to1", []string{}, "sets a list of external IP addresses of 1:1 (D)NAT and a candidate type for which the external IP address is used") + if err := viper.BindPFlag("nat1to1", cmd.PersistentFlags().Lookup("nat1to1")); err != nil { return err } @@ -129,7 +129,7 @@ func (s *WebRTC) Set() { s.Display = viper.GetString("display") s.VideoCodec = videoCodec s.VideoParams = viper.GetString("vparams") - s.NAT1To1IPs = viper.GetStringSlice("ip") + s.NAT1To1IPs = viper.GetStringSlice("nat1to1") if len(s.NAT1To1IPs) == 0 { ip, err := utils.GetIP()