Skip to content

Commit

Permalink
Use the host for evaluating trust, not the entire URL (#721)
Browse files Browse the repository at this point in the history
* Use the host for evaluating trust, not the entire URL

* Get host from URLParts
  • Loading branch information
patmalt authored and acmacalister committed Jan 13, 2020
1 parent 547cb80 commit 4e8dca6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/Transport/TCPTransport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class TCPTransport: Transport {
sec_protocol_verify_complete(true)
return
}
pinner.evaluateTrust(trust: trust, domain: url.absoluteString, completion: { (state) in
pinner.evaluateTrust(trust: trust, domain: parts.host, completion: { (state) in
switch state {
case .success:
sec_protocol_verify_complete(true)
Expand Down
2 changes: 1 addition & 1 deletion Starscream.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Starscream"
s.version = "4.0.0"
s.version = "4.0.1"
s.summary = "A conforming WebSocket RFC 6455 client library in Swift."
s.homepage = "https://github.com/daltoniam/Starscream"
s.license = 'Apache License, Version 2.0'
Expand Down

0 comments on commit 4e8dca6

Please sign in to comment.