mirror of
https://github.com/Snawoot/opera-proxy.git
synced 2025-09-01 18:20:23 +00:00
fmt
This commit is contained in:
parent
f0abca331e
commit
6dc7d79f87
2 changed files with 5 additions and 5 deletions
4
fixed.go
4
fixed.go
|
@ -7,13 +7,13 @@ import (
|
|||
|
||||
type FixedDialer struct {
|
||||
fixedAddress string
|
||||
next ContextDialer
|
||||
next ContextDialer
|
||||
}
|
||||
|
||||
func NewFixedDialer(address string, next ContextDialer) *FixedDialer {
|
||||
return &FixedDialer{
|
||||
fixedAddress: address,
|
||||
next: next,
|
||||
next: next,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
6
main.go
6
main.go
|
@ -21,7 +21,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
API_DOMAIN = "api.sec-tunnel.com"
|
||||
API_DOMAIN = "api.sec-tunnel.com"
|
||||
PROXY_SUFFIX = "sec-tunnel.com"
|
||||
)
|
||||
|
||||
|
@ -74,8 +74,8 @@ func parse_args() CLIArgs {
|
|||
flag.StringVar(&args.apiAddress, "api-address", "", fmt.Sprintf("override IP address of %s", API_DOMAIN))
|
||||
flag.StringVar(&args.bootstrapDNS, "bootstrap-dns", "",
|
||||
"DNS/DoH/DoT/DoQ resolver for initial discovering of SurfEasy API address. "+
|
||||
"See https://github.com/ameshkov/dnslookup/ for upstream DNS URL format. "+
|
||||
"Examples: https://1.1.1.1/dns-query, quic://dns.adguard.com")
|
||||
"See https://github.com/ameshkov/dnslookup/ for upstream DNS URL format. "+
|
||||
"Examples: https://1.1.1.1/dns-query, quic://dns.adguard.com")
|
||||
flag.Parse()
|
||||
if args.country == "" {
|
||||
arg_fail("Country can't be empty string.")
|
||||
|
|
Loading…
Add table
Reference in a new issue