Enable passing in local IP, refactored IP detection (#48)
* Enable passing in local IP, refactored IP detection * update docker server instructions
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@ func NewWebRTCConfig(conf *config.Config, externalIP string) (*WebRTCConfig, err
|
||||
loggerFactory := logging.NewDefaultLoggerFactory()
|
||||
lkLogger := loggerFactory.NewLogger("livekit-mux")
|
||||
|
||||
if rtcConf.UseExternalIP && externalIP != "" {
|
||||
if externalIP != "" {
|
||||
s.SetNAT1To1IPs([]string{externalIP}, webrtc.ICECandidateTypeHost)
|
||||
}
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@ func TestCorrectJoinedAt(t *testing.T) {
|
||||
}
|
||||
|
||||
func newParticipantForTest(identity string) *ParticipantImpl {
|
||||
conf, _ := config.NewConfig("")
|
||||
conf, _ := config.NewConfig("", nil)
|
||||
// disable mux, it doesn't play too well with unit test
|
||||
conf.RTC.UDPPort = 0
|
||||
conf.RTC.TCPPort = 0
|
||||
|
||||
Reference in New Issue
Block a user