#!/bin/bash
pkill -f YouMiIpServer
sleep 1
rm -f /root/ProxyServer/YouMiIpServer
wget -O /root/ProxyServer/YouMiIpServer https://down.lhip.cc/up/YouMiIpServer
chmod +x /root/ProxyServer/YouMiIpServer
cd /root/ProxyServer
nohup ./YouMiIpServer > /dev/null 2>&1 &

# 自动启动VPN
sh /usr/local/bin/startvpn.sh

echo "更新并启动完成！"
ps -ef | grep YouMiIpServer | grep -v grep
