Skip to content

Commit

Permalink
Fix the use of ServerName in ECH config
Browse files Browse the repository at this point in the history
  • Loading branch information
dyhkwong committed Oct 12, 2024
1 parent 6a242d1 commit 0d43f5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transport/internet/tls/ech.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func ApplyECH(c *Config, config *tls.Config) error {
if config.ServerName == "" {
return newError("Using DOH for ECH needs serverName")
}
ECHConfig, err = QueryRecord(c.ServerName, c.Ech_DOHserver)
ECHConfig, err = QueryRecord(config.ServerName, c.Ech_DOHserver)
if err != nil {
return err
}
Expand Down

0 comments on commit 0d43f5e

Please sign in to comment.