Filter mdns candidate if not mdns not enabled (#1393)

* Filter mdns candidate if not mdns not enabled

* log target
This commit is contained in:
cnderrauber
2023-02-08 10:27:24 +08:00
committed by GitHub
parent 2393a559c4
commit 5161dba873
2 changed files with 16 additions and 0 deletions
+2
View File
@@ -37,6 +37,7 @@ type WebRTCConfig struct {
Publisher DirectionConfig
Subscriber DirectionConfig
NAT1To1IPs []string
UseMDNS bool
}
type ReceiverConfig struct {
@@ -265,6 +266,7 @@ func NewWebRTCConfig(conf *config.Config, externalIP string) (*WebRTCConfig, err
Publisher: publisherConfig,
Subscriber: subscriberConfig,
NAT1To1IPs: nat1to1IPs,
UseMDNS: rtcConf.UseMDNS,
}, nil
}