Browse Source

breaking: changed the default listening IP from `0.0.0.0` to `127.0.0.1`. This change restricts the application access to the local machine only.

pull/26/head
KaranGauswami 9 months ago
parent
commit
519072a4af
No known key found for this signature in database GPG Key ID: A4D57BC9D0772045
  1. 4
      README.md
  2. 2
      src/main.rs

4
README.md

@ -45,12 +45,12 @@ Usage: sthp [OPTIONS]
Options:
-p, --port <PORT> port where Http proxy should listen [default: 8080]
--listen-ip <LISTEN_IP> [default: 0.0.0.0]
--listen-ip <LISTEN_IP> [default: 127.0.0.1]
-u, --username <USERNAME> Socks5 username
-P, --password <PASSWORD> Socks5 password
--http-basic <USER:PASSWD> HTTP Basic Auth
-s, --socks-address <SOCKS_ADDRESS> Socks5 proxy address [default: 127.0.0.1:1080]
--allowed-domains <ALLOWED_DOMAINS> Comma-separated list of allowed domains
--http-basic <HTTP_BASIC> HTTP Basic Auth credentials in the format "user:passwd"
-h, --help Print help information
-V, --version Print version information
```

2
src/main.rs

@ -38,7 +38,7 @@ struct Cli {
#[arg(short, long, default_value_t = 8080)]
port: u16,
#[arg(long, default_value = "0.0.0.0")]
#[arg(long, default_value = "127.0.0.1")]
listen_ip: IpAddr,
#[command(flatten)]

Loading…
Cancel
Save