Skip to content

Commit

Permalink
Validate the local address of tls2raw client plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
koho authored Aug 20, 2024
1 parent e7c0ae9 commit 70a48ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/editproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ func (pd *EditProxyDialog) validateProxy(p config.Proxy) bool {
p.LocalIP = ""
p.LocalPort = ""
switch p.Plugin {
case consts.PluginHttp2Https, consts.PluginHttps2Http, consts.PluginHttps2Https:
case consts.PluginHttp2Https, consts.PluginHttps2Http, consts.PluginHttps2Https, consts.PluginTLS2Raw:
if p.PluginLocalAddr == "" {
showErrorMessage(pd.Form(), "", i18n.Sprintf("Local address is required."))
return false
Expand Down

0 comments on commit 70a48ec

Please sign in to comment.