Skip to content

Commit

Permalink
formatted code writing
Browse files Browse the repository at this point in the history
  • Loading branch information
AmberisMyShiba committed Oct 12, 2023
1 parent e274286 commit 400c4b7
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -370,43 +370,43 @@ o.default = "0"

--[[Hysteria2 QUIC parameters setting]]
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.rmempty = true
o.default = "8388608"

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.rmempty = true
o.default = "8388608"

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.rmempty = true
o.default = "20971520"

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.rmempty = true
o.default = "20971520"

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.datatype = "uinteger"
o.default = "30"

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.datatype = "uinteger"
o.default = "10"

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.default = false

Expand Down Expand Up @@ -907,7 +907,7 @@ o.description = translate("If true, allowss insecure connection at TLS client, e

-- [[ Hysteria2 TLS pinSHA256 ]] --
o = s:option(Value, "pinsha256", translate("Certificate fingerprint"))
o:depends({type ="hysteria", insecure = true })
o:depends({type = "hysteria", insecure = true })
o.rmempty = true

-- [[ Mux ]]--
Expand Down

0 comments on commit 400c4b7

Please sign in to comment.