Skip to content

Commit

Permalink
Notify abou empty ips preset
Browse files Browse the repository at this point in the history
  • Loading branch information
Jipok committed Oct 28, 2024
1 parent 4237e4e commit 034e07a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ A tool that automatically routes traffic through VPN or any other network interf

## Usage

1. Download the latest release or build from source
1. Download the [latest release](https://github.com/Jipok/dpi-bypass-proxy/releases/latest) or build from source
2. Prepare your domain lists:
```bash
# For proxy list (recommended)
Expand Down
9 changes: 9 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@ func main() {
fmt.Println(green(" wget https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts -O blocks.lst\n"))
}

if args.PresetIPs == "" && !args.Silent {
log.Print(yellow("Notice: Consider routing your DNS server's IP through VPN too."))
log.Print(yellow("Your ISP might block websites by manipulating DNS responses."))
log.Print(yellow("You can add DNS server IPs to a file and use --preset-ips option, for example:"))
log.Print(" echo '8.8.8.8\\n1.1.1.1' > dns-ips.txt")
log.Print(" sudo ./dnsr --preset-ips dns-ips.txt /etc/wireguard/wg0.conf")
log.Print("")
}

if os.Getuid() != 0 {
log.Fatal(red("Must be run as root"))
}
Expand Down

0 comments on commit 034e07a

Please sign in to comment.