1 删除 开发者按钮

2 socket 连接时 先将旧连接关闭
3 恢复 主机 ic
This commit is contained in:
WoNiu 2024-04-06 16:32:10 +08:00
parent 30af057969
commit ff882a5e06
3 changed files with 3 additions and 7 deletions

View File

@ -43,7 +43,7 @@ class LoginSocket{
connect() async {
socket?.close();
socket = await Socket.connect(url, port, timeout: const Duration(seconds: 30));
socket?.listen((event) {

View File

@ -30,12 +30,13 @@ class SyncSocket {
RawDatagramSocket? socket;
// IC 0 1
int ic = 1;
int ic = 0;
/// ip
List<String> childrenIp = [];
connect() async {
socket?.close();
socket = await RawDatagramSocket.bind(InternetAddress.anyIPv4, 0);
//

View File

@ -152,11 +152,6 @@ class _ShowWebWidgetState extends State<ShowWebWidget> {
if (widget.main == false) return input();
return Row(
children: [
TextButton(
onPressed: () {
widget.controller.openDevTools();
},
child: const Text('开发者')),
inputNumber(),
Row(
children: [