Compare commits
No commits in common. "ad08a2360b41bb9331d51a5c992d80113c1c5d38" and "afca9afad4418dfe95e2495c276ce15794eecff9" have entirely different histories.
ad08a2360b
...
afca9afad4
|
@ -66,7 +66,7 @@ cd http-proxy-server
|
|||
go run main.go --port <PORT> [--username <USERNAME> --password <PASSWORD>]
|
||||
```
|
||||
|
||||
By default, the proxy will run on port `1488`. If both `--username` and `--password` are omitted, authentication will be bypassed.
|
||||
By default, the proxy will run on port `3000`. If both `--username` and `--password` are omitted, authentication will be bypassed.
|
||||
|
||||
For example:
|
||||
|
||||
|
|
2
main.go
2
main.go
|
@ -125,7 +125,7 @@ func logRequest(r *http.Request) {
|
|||
func main() {
|
||||
var port, username, password string
|
||||
|
||||
flag.StringVar(&port, "port", "1488", "Specify the port the proxy will run on")
|
||||
flag.StringVar(&port, "port", "3000", "Specify the port the proxy will run on")
|
||||
flag.StringVar(&username, "username", "", "Username for proxy authentication")
|
||||
flag.StringVar(&password, "password", "", "Password for proxy authentication")
|
||||
flag.Parse()
|
||||
|
|
Loading…
Reference in New Issue