-
Notifications
You must be signed in to change notification settings - Fork 171
Closed
Description
Maybe the code below is getting the server name from wrong place when the dtls server handling SNI extension.
I think the server should get the server name from the state of the connection, which variable name is state in this function scope. Am I right?
Lines 204 to 208 in d01fc85
| if cfg.localPSKCallback == nil { | |
| certificate, err := cfg.getCertificate(cfg.serverName) | |
| if err != nil { | |
| return nil, &alert{alertLevelFatal, alertHandshakeFailure}, err | |
| } |
Metadata
Metadata
Assignees
Labels
No labels