Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,18 @@ type Provider struct {
TestURL string `yaml:"testurl"`
Masquerades []*Masquerade `yaml:"masquerades"`
VerifyHostname *string `yaml:"verifyhostname"`
FrontingSNIs map[string]*SNIConfig `yaml:"fronting_snis"`
// Pipeline-emitted YAML keys are lowercase-concatenated, not
// snake_case (the upstream generator uses lowercased Go field
// names with no yaml tag); the tag here must match the wire
// format exactly or yaml.Unmarshal silently leaves the field
// zero-valued.
FrontingSNIs map[string]*SNIConfig `yaml:"frontingsnis"`
Comment thread
myleshorton marked this conversation as resolved.
}

// SNIConfig controls SNI generation for a specific country or "default".
type SNIConfig struct {
UseArbitrarySNIs bool `yaml:"use_arbitrary_snis"`
ArbitrarySNIs []string `yaml:"arbitrary_snis"`
UseArbitrarySNIs bool `yaml:"usearbitrarysnis"`
ArbitrarySNIs []string `yaml:"arbitrarysnis"`
Comment thread
myleshorton marked this conversation as resolved.
}

// Masquerade contains the data for a single domain front.
Expand Down
Loading