Merge branch 'master' of https://gitee.com/starlock-cn/app-starlock
This commit is contained in:
commit
2e703bd0cc
@ -65,6 +65,13 @@
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
</intent-filter>
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
<data android:scheme="skysmartlock" />
|
||||
</intent-filter>
|
||||
|
||||
</activity>
|
||||
</application>
|
||||
|
||||
|
||||
@ -42,13 +42,16 @@ class UDPManage {
|
||||
int remoteUnlock = 0; // 是否远程开锁 1:开启 0:关闭
|
||||
|
||||
void initUdp() async {
|
||||
var listAddress = InternetAddress.lookup(host!);
|
||||
listAddress.then((list) {
|
||||
list.forEach((element) {
|
||||
// print('Udp ----> element.address:${element.address} element.host:${element.host}');
|
||||
host = element.address;
|
||||
if (host != '') {
|
||||
var listAddress = InternetAddress.lookup(host);
|
||||
listAddress.then((list) {
|
||||
list.forEach((element) {
|
||||
// print('Udp ----> element.address:${element.address} element.host:${element.host}');
|
||||
host = element.address;
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
await _initUdp();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user