formatted code writing
This commit is contained in:
parent
ee1c4d7d8f
commit
613fb87d44
@ -370,43 +370,43 @@ o.default = "0"
|
|||||||
|
|
||||||
--[[Hysteria2 QUIC parameters setting]]
|
--[[Hysteria2 QUIC parameters setting]]
|
||||||
o = s:option(Value, "initstreamreceivewindow", translate("QUIC initStreamReceiveWindow"))
|
o = s:option(Value, "initstreamreceivewindow", translate("QUIC initStreamReceiveWindow"))
|
||||||
o:depends({type = "hysteria",flag_quicparam = "1"})
|
o:depends({type = "hysteria", flag_quicparam = "1"})
|
||||||
o.datatype = "uinteger"
|
o.datatype = "uinteger"
|
||||||
o.rmempty = true
|
o.rmempty = true
|
||||||
o.default = "8388608"
|
o.default = "8388608"
|
||||||
|
|
||||||
o = s:option(Value, "maxstreamseceivewindow", translate("QUIC maxStreamReceiveWindow"))
|
o = s:option(Value, "maxstreamseceivewindow", translate("QUIC maxStreamReceiveWindow"))
|
||||||
o:depends({type = "hysteria",flag_quicparam = "1"})
|
o:depends({type = "hysteria", flag_quicparam = "1"})
|
||||||
o.datatype = "uinteger"
|
o.datatype = "uinteger"
|
||||||
o.rmempty = true
|
o.rmempty = true
|
||||||
o.default = "8388608"
|
o.default = "8388608"
|
||||||
|
|
||||||
o = s:option(Value, "initconnreceivewindow", translate("QUIC initConnReceiveWindow"))
|
o = s:option(Value, "initconnreceivewindow", translate("QUIC initConnReceiveWindow"))
|
||||||
o:depends({type = "hysteria",flag_quicparam = "1"})
|
o:depends({type = "hysteria", flag_quicparam = "1"})
|
||||||
o.datatype = "uinteger"
|
o.datatype = "uinteger"
|
||||||
o.rmempty = true
|
o.rmempty = true
|
||||||
o.default = "20971520"
|
o.default = "20971520"
|
||||||
|
|
||||||
o = s:option(Value, "maxconnreceivewindow", translate("QUIC maxConnReceiveWindow"))
|
o = s:option(Value, "maxconnreceivewindow", translate("QUIC maxConnReceiveWindow"))
|
||||||
o:depends({type = "hysteria",flag_quicparam = "1"})
|
o:depends({type = "hysteria", flag_quicparam = "1"})
|
||||||
o.datatype = "uinteger"
|
o.datatype = "uinteger"
|
||||||
o.rmempty = true
|
o.rmempty = true
|
||||||
o.default = "20971520"
|
o.default = "20971520"
|
||||||
|
|
||||||
o = s:option(Value, "maxidletimeout", translate("QUIC maxIdleTimeout(Unit:second)"))
|
o = s:option(Value, "maxidletimeout", translate("QUIC maxIdleTimeout(Unit:second)"))
|
||||||
o:depends({type = "hysteria",flag_quicparam = "1"})
|
o:depends({type = "hysteria", flag_quicparam = "1"})
|
||||||
o.rmempty = true
|
o.rmempty = true
|
||||||
o.datatype = "uinteger"
|
o.datatype = "uinteger"
|
||||||
o.default = "30"
|
o.default = "30"
|
||||||
|
|
||||||
o = s:option(Value, "keepaliveperiod", translate("The keep-alive period.(Unit:second)"))
|
o = s:option(Value, "keepaliveperiod", translate("The keep-alive period.(Unit:second)"))
|
||||||
o:depends({type = "hysteria",flag_quicparam = "1"})
|
o:depends({type = "hysteria", flag_quicparam = "1"})
|
||||||
o.rmempty = true
|
o.rmempty = true
|
||||||
o.datatype = "uinteger"
|
o.datatype = "uinteger"
|
||||||
o.default = "10"
|
o.default = "10"
|
||||||
|
|
||||||
o = s:option(Flag, "disablepathmtudiscovery", translate("Disable Path MTU discovery"))
|
o = s:option(Flag, "disablepathmtudiscovery", translate("Disable Path MTU discovery"))
|
||||||
o:depends({type = "hysteria",flag_quicparam = "1"})
|
o:depends({type = "hysteria", flag_quicparam = "1"})
|
||||||
o.rmempty = true
|
o.rmempty = true
|
||||||
o.default = false
|
o.default = false
|
||||||
|
|
||||||
@ -907,7 +907,7 @@ o.description = translate("If true, allowss insecure connection at TLS client, e
|
|||||||
|
|
||||||
-- [[ Hysteria2 TLS pinSHA256 ]] --
|
-- [[ Hysteria2 TLS pinSHA256 ]] --
|
||||||
o = s:option(Value, "pinsha256", translate("Certificate fingerprint"))
|
o = s:option(Value, "pinsha256", translate("Certificate fingerprint"))
|
||||||
o:depends({type ="hysteria", insecure = true })
|
o:depends({type = "hysteria", insecure = true })
|
||||||
o.rmempty = true
|
o.rmempty = true
|
||||||
|
|
||||||
-- [[ Mux ]]--
|
-- [[ Mux ]]--
|
||||||
|
Loading…
Reference in New Issue
Block a user