|
hace 5 meses | |
---|---|---|
.. | ||
.github | hace 5 meses | |
adapter | hace 5 meses | |
common | hace 5 meses | |
component | hace 5 meses | |
config | hace 5 meses | |
constant | hace 5 meses | |
context | hace 5 meses | |
dns | hace 5 meses | |
docker | hace 5 meses | |
docs | hace 5 meses | |
hub | hace 5 meses | |
listener | hace 5 meses | |
log | hace 5 meses | |
ntp | hace 5 meses | |
rules | hace 5 meses | |
test | hace 5 meses | |
transport | hace 5 meses | |
tunnel | hace 5 meses | |
.gitignore | hace 5 meses | |
.golangci.yaml | hace 5 meses | |
Dockerfile | hace 5 meses | |
LICENSE | hace 5 meses | |
Makefile | hace 5 meses | |
Meta.png | hace 5 meses | |
README.md | hace 5 meses | |
android_tz.go | hace 5 meses | |
check_amd64.sh | hace 5 meses | |
flake.lock | hace 5 meses | |
flake.nix | hace 5 meses | |
go.mod | hace 5 meses | |
go.sum | hace 5 meses | |
main.go | hace 5 meses |
iptables
.A web dashboard with first-class support for this project has been created; it can be checked out at metacubexd.
Configuration example is located at /docs/config.yaml.
Documentation can be found in mihomo Docs.
Requirements: Go 1.20 or newer
Build mihomo:
git clone https://github.com/MetaCubeX/mihomo.git
cd mihomo && go mod download
go build
Set go proxy if a connection to GitHub is not possible:
go env -w GOPROXY=https://goproxy.io,direct
Build with gvisor tun stack:
go build -tags with_gvisor
Work on Linux OS which supported iptables
# Enable the TPROXY listener
tproxy-port: 9898
iptables:
enable: true # default is false
inbound-interface: eth0 # detect the inbound interface, default is 'lo'
Check wiki to get an instruction on using debug API.
This software is released under the GPL-3.0 license.