@@ -125,6 +125,7 @@ func InitializeWebRTCConnection(configuration *models.Configuration, communicati
125
125
Credential : w .TurnServersCredential ,
126
126
},
127
127
},
128
+ ICETransportPolicy : pionWebRTC .ICETransportPolicyRelay ,
128
129
},
129
130
)
130
131
@@ -215,7 +216,7 @@ func InitializeWebRTCConnection(configuration *models.Configuration, communicati
215
216
payload , err := models .PackageMQTTMessage (configuration , message )
216
217
if err == nil {
217
218
log .Log .Info ("InitializeWebRTCConnection:" + string (candateBinary ))
218
- token := mqttClient .Publish ("kerberos/hub/" + hubKey , 0 , false , payload )
219
+ token := mqttClient .Publish ("kerberos/hub/" + hubKey , 2 , false , payload )
219
220
token .Wait ()
220
221
} else {
221
222
log .Log .Info ("HandleRequestConfig: something went wrong while sending acknowledge config to hub: " + string (payload ))
@@ -241,7 +242,7 @@ func InitializeWebRTCConnection(configuration *models.Configuration, communicati
241
242
}
242
243
payload , err := models .PackageMQTTMessage (configuration , message )
243
244
if err == nil {
244
- token := mqttClient .Publish ("kerberos/hub/" + hubKey , 0 , false , payload )
245
+ token := mqttClient .Publish ("kerberos/hub/" + hubKey , 2 , false , payload )
245
246
token .Wait ()
246
247
} else {
247
248
log .Log .Info ("HandleRequestConfig: something went wrong while sending acknowledge config to hub: " + string (payload ))
0 commit comments