|
@@ -116,6 +116,14 @@ export class MetaGateway
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if (/192.168\./.test(candidate)) {
|
|
|
+ // const all_ips = Array.from(process.env.ALL_IPS);
|
|
|
+ if (!/192.168.0\./.test(candidate)) {
|
|
|
+ console.warn('不是192.168.0.测试网段');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
console.warn('onLocalCandidate Candidate:', candidate);
|
|
|
const iceRes = {
|
|
|
candidate,
|