mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-10-25 22:01:59 +00:00
Reject IP literal server name with TLS spoof
This commit is contained in:
parent
3e8ea4e590
commit
2ddfecb47a
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ func parseTLSSpoofOptions(serverName string, options option.OutboundTLSOptions)
|
|||
if !tlsspoof.PlatformSupported {
|
||||
return "", 0, E.New("`spoof` is not supported on this platform")
|
||||
}
|
||||
if options.DisableSNI || serverName == "" {
|
||||
if options.DisableSNI || serverName == "" || M.ParseAddr(serverName).IsValid() {
|
||||
return "", 0, E.New("`spoof` requires TLS ClientHello with SNI")
|
||||
}
|
||||
method, err := tlsspoof.ParseMethod(options.SpoofMethod)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue