MCPcopy Create free account
hub / github.com/SamNet-dev/snix / EffectiveSNIPool

Method EffectiveSNIPool

config/config.go:248–256  ·  view source on GitHub ↗

EffectiveSNIPool returns the spoof SNI candidates with SNI promoted to a single-entry pool when SNIPool is empty.

()

Source from the content-addressed store, hash-verified

246// EffectiveSNIPool returns the spoof SNI candidates with SNI promoted to a
247// single-entry pool when SNIPool is empty.
248func (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}

Callers 6

renderProfileDetailFunction · 0.80
ViewMethod · 0.80
newStatusCmdFunction · 0.80
runEngineFunction · 0.80
runEngineFunction · 0.80
TestParseValidFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestParseValidFunction · 0.64