このようなことが原因でプログラムが使用できなくなるとは知りませんでした
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja> git-svn-id: https://svn.yakumo.dev/yakumo.izuru/yukari/trunk@154 f3bd38d9-da89-464d-a02a-eb04e43141b5
This commit is contained in:
parent
8c999a6220
commit
7d5ae14156
@ -902,6 +902,17 @@ func (p *Proxy) serveMainPage(ctx *fasthttp.RequestCtx, statusCode int, err erro
|
||||
}
|
||||
|
||||
func main() {
|
||||
config.Config.ListenAddress = "127.0.0.1:3000"
|
||||
config.Config.Key = ""
|
||||
config.Config.IPV6 = true
|
||||
config.Config.Debug = false
|
||||
config.Config.RequestTimeout = 5
|
||||
config.Config.FollowRedirect = false
|
||||
config.Config.UrlParameter = "yukariurl"
|
||||
config.Config.HashParameter = "yukarihash"
|
||||
config.Config.MaxConnsPerHost = 5
|
||||
config.Config.ProxyEnv = false
|
||||
|
||||
var configFile string
|
||||
var proxy string
|
||||
var socks5 string
|
||||
@ -915,17 +926,6 @@ func main() {
|
||||
|
||||
if configFile != "" {
|
||||
config.ReadConfig(configFile)
|
||||
} else {
|
||||
config.Config.ListenAddress = "127.0.0.1:3000"
|
||||
config.Config.Key = ""
|
||||
config.Config.IPV6 = true
|
||||
config.Config.Debug = false
|
||||
config.Config.RequestTimeout = 5
|
||||
config.Config.FollowRedirect = false
|
||||
config.Config.UrlParameter = "yukariurl"
|
||||
config.Config.HashParameter = "yukarihash"
|
||||
config.Config.MaxConnsPerHost = 5
|
||||
config.Config.ProxyEnv = false
|
||||
}
|
||||
|
||||
if version {
|
||||
|
@ -29,7 +29,7 @@ User-defined requesting string URL parameter name
|
||||
.It hashparam (string)
|
||||
User-defined requesting string HASH parameter name
|
||||
(ie: '/?hash=...' or '/?h=...') (default "yukarihash")
|
||||
.It proxyenv (string)
|
||||
.It proxyenv (bool)
|
||||
Use a HTTP proxy as set in the environment
|
||||
(
|
||||
.Ev HTTP_PROXY ,
|
||||
|
Loading…
x
Reference in New Issue
Block a user