2024-01-08 10:46:19 +08:00
|
|
|
|
# MacserverAutoRestartNetwork
|
|
|
|
|
|
2024-01-08 10:57:03 +08:00
|
|
|
|
对于Surge网关DHCP服务,时常会出现网卡断连,本项目基于网络监测判断重启网卡服务以解决这个问题
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 环境需求
|
|
|
|
|
|
|
|
|
|
Python3/requests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 使用方法
|
|
|
|
|
|
|
|
|
|
使用sudo命令运行
|
|
|
|
|
|
|
|
|
|
`sudo python main.py`
|
|
|
|
|
|
2024-01-08 18:31:24 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
![Snipaste_2024-01-08_18-28-51.png](https://img.nyaasuki.com/2024/01/08/659bce8c7ed66.png)
|
|
|
|
|
|