Skip to content

Commit

Permalink
makeClientHelloGM 中加入 serverName字段 实现sni
Browse files Browse the repository at this point in the history
  • Loading branch information
nervmor committed Dec 28, 2021
1 parent 02e00ad commit a8d8d87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gmtls/gm_handshake_client_double.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func makeClientHelloGM(config *Config) (*clientHelloMsg, error) {
vers: config.GMSupport.GetVersion(),
compressionMethods: []uint8{compressionNone},
random: make([]byte, 32),
serverName: hostnameInSNI(config.ServerName),
}
possibleCipherSuites := getCipherSuites(config)
hello.cipherSuites = make([]uint16, 0, len(possibleCipherSuites))
Expand Down

0 comments on commit a8d8d87

Please sign in to comment.