このようなことが原因でプログラムが使用できなくなるとは知りませんでした

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:
yakumo.izuru 2024-03-26 17:38:17 +00:00
parent 8c999a6220
commit 7d5ae14156
2 changed files with 12 additions and 12 deletions

View File

@ -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 {

View File

@ -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 ,