mirror of
https://github.com/routerich/RouterichAX3000_configs.git
synced 2026-01-27 04:30:34 +03:00
Fix check install opera proxy
This commit is contained in:
@@ -547,32 +547,32 @@ else
|
|||||||
echo "Installing opera-proxy..."
|
echo "Installing opera-proxy..."
|
||||||
opkg install $destination_file
|
opkg install $destination_file
|
||||||
|
|
||||||
cat <<EOF > /etc/sing-box/config.json
|
cat <<EOF > /etc/sing-box/config.json
|
||||||
|
{
|
||||||
|
"log": {
|
||||||
|
"disabled": true,
|
||||||
|
"level": "error"
|
||||||
|
},
|
||||||
|
"inbounds": [
|
||||||
{
|
{
|
||||||
"log": {
|
"type": "tproxy",
|
||||||
"disabled": true,
|
"listen": "::",
|
||||||
"level": "error"
|
"listen_port": 1100,
|
||||||
},
|
"sniff": false
|
||||||
"inbounds": [
|
|
||||||
{
|
|
||||||
"type": "tproxy",
|
|
||||||
"listen": "::",
|
|
||||||
"listen_port": 1100,
|
|
||||||
"sniff": false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outbounds": [
|
|
||||||
{
|
|
||||||
"type": "http",
|
|
||||||
"server": "127.0.0.1",
|
|
||||||
"server_port": 18080
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"route": {
|
|
||||||
"auto_detect_interface": true
|
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"outbounds": [
|
||||||
|
{
|
||||||
|
"type": "http",
|
||||||
|
"server": "127.0.0.1",
|
||||||
|
"server_port": 18080
|
||||||
}
|
}
|
||||||
EOF
|
],
|
||||||
|
"route": {
|
||||||
|
"auto_detect_interface": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
|
||||||
echo "Setting sing-box..."
|
echo "Setting sing-box..."
|
||||||
uci set sing-box.main.enabled='1'
|
uci set sing-box.main.enabled='1'
|
||||||
|
|||||||
Reference in New Issue
Block a user