EffectiveSNIPool returns the spoof SNI candidates with SNI promoted to a single-entry pool when SNIPool is empty.
()
| 246 | // EffectiveSNIPool returns the spoof SNI candidates with SNI promoted to a |
| 247 | // single-entry pool when SNIPool is empty. |
| 248 | func (p *Profile) EffectiveSNIPool() []string { |
| 249 | if len(p.Spoof.SNIPool) > 0 { |
| 250 | return p.Spoof.SNIPool |
| 251 | } |
| 252 | if p.Spoof.SNI != "" { |
| 253 | return []string{p.Spoof.SNI} |
| 254 | } |
| 255 | return nil |
| 256 | } |
no outgoing calls