diff --git a/internal/types/webrtc.go b/internal/types/webrtc.go index 39072103..c31b11a8 100644 --- a/internal/types/webrtc.go +++ b/internal/types/webrtc.go @@ -4,8 +4,8 @@ import "github.com/pion/webrtc/v3" type ICEServer struct { URLs []string `mapstructure:"urls" json:"urls"` - Username string `mapstructure:"username" json:"username"` - Credential string `mapstructure:"credential" json:"credential"` + Username string `mapstructure:"username" json:"username,omitempty"` + Credential string `mapstructure:"credential" json:"credential,omitempty"` } type WebRTCPeer interface {