mirror of
https://github.com/Snawoot/opera-proxy.git
synced 2025-09-02 02:30:21 +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 {
|
type FixedDialer struct {
|
||||||
fixedAddress string
|
fixedAddress string
|
||||||
next ContextDialer
|
next ContextDialer
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewFixedDialer(address string, next ContextDialer) *FixedDialer {
|
func NewFixedDialer(address string, next ContextDialer) *FixedDialer {
|
||||||
return &FixedDialer{
|
return &FixedDialer{
|
||||||
fixedAddress: address,
|
fixedAddress: address,
|
||||||
next: next,
|
next: next,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
6
main.go
6
main.go
|
@ -21,7 +21,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
API_DOMAIN = "api.sec-tunnel.com"
|
API_DOMAIN = "api.sec-tunnel.com"
|
||||||
PROXY_SUFFIX = "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.apiAddress, "api-address", "", fmt.Sprintf("override IP address of %s", API_DOMAIN))
|
||||||
flag.StringVar(&args.bootstrapDNS, "bootstrap-dns", "",
|
flag.StringVar(&args.bootstrapDNS, "bootstrap-dns", "",
|
||||||
"DNS/DoH/DoT/DoQ resolver for initial discovering of SurfEasy API address. "+
|
"DNS/DoH/DoT/DoQ resolver for initial discovering of SurfEasy API address. "+
|
||||||
"See https://github.com/ameshkov/dnslookup/ for upstream DNS URL format. "+
|
"See https://github.com/ameshkov/dnslookup/ for upstream DNS URL format. "+
|
||||||
"Examples: https://1.1.1.1/dns-query, quic://dns.adguard.com")
|
"Examples: https://1.1.1.1/dns-query, quic://dns.adguard.com")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
if args.country == "" {
|
if args.country == "" {
|
||||||
arg_fail("Country can't be empty string.")
|
arg_fail("Country can't be empty string.")
|
||||||
|
|
Loading…
Add table
Reference in a new issue