117503445 / openwrt-wan-reconnect

Reconnecting the WAN interface in OpenWRT when the Internet is not available.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenWRT-WAN-reconnect

GoTemplate

Reconnecting the PPPoE interface in luci when the Internet is not available.

The project uses make to make your life easier. If you're not familiar with Makefiles you can take a look at this quickstart guide.

Whenever you need help regarding the available actions, just use the following command.

make help

Setup

To get your setup up and running the only thing you have to do is

make all

This will initialize a git repo, download the dependencies in the latest versions and install all needed tools. If needed code generation will be triggered in this target as well.

Run

make run

Test & lint

Run linting

make lint

Run tests

make test

detector

http

detector:
    type: "http"
    url: "http://baidu.com"

connector

ssh

type: "ssh"
host: "192.168.1.1:22"
username: "root"
password: "123456"

clash

type: "clash"
host: "http://192.168.1.1:9090"
token: "123456"
selector: "selector"

About

Reconnecting the WAN interface in OpenWRT when the Internet is not available.

License:GNU General Public License v3.0


Languages

Language:Go 70.6%Language:Makefile 18.2%Language:Dockerfile 8.2%Language:Shell 3.0%