mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Update getserveratboot
This commit is contained in:
parent
8ff7e9df07
commit
8cb0cf8b54
1 changed files with 4 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
START=20
|
||||
start()
|
||||
if [ ! -f /etc/config/date.txt ]; then
|
||||
{
|
||||
routerid=$(cat /etc/config/date.txt)
|
||||
api="https://55860.com/modules/addons/flowpacket/api.php?routeid=${routerid}"
|
||||
|
@ -39,10 +40,11 @@ fi
|
|||
commit rtty
|
||||
set frpc."$routerid"=conf
|
||||
set frpc."$routerid".type=http
|
||||
set frpc."$routerid".local_port=829
|
||||
set frpc."$routerid".local_port=80
|
||||
set frpc."$routerid".subdomain="$routerid"
|
||||
commit frpc
|
||||
/etc/init.d/openmptcprouter-vps restart
|
||||
EOF
|
||||
fi
|
||||
}
|
||||
}
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue