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