ice server omitempty credentials.

This commit is contained in:
Miroslav Šedivý 2021-03-19 11:28:06 +01:00
parent 2a0d9da5ac
commit cd15e0b03e

View File

@ -4,8 +4,8 @@ import "github.com/pion/webrtc/v3"
type ICEServer struct { type ICEServer struct {
URLs []string `mapstructure:"urls" json:"urls"` URLs []string `mapstructure:"urls" json:"urls"`
Username string `mapstructure:"username" json:"username"` Username string `mapstructure:"username" json:"username,omitempty"`
Credential string `mapstructure:"credential" json:"credential"` Credential string `mapstructure:"credential" json:"credential,omitempty"`
} }
type WebRTCPeer interface { type WebRTCPeer interface {