Skip to content

Commit fa5bc72

Browse files
authored
fix apiHost comparison SegmentDestination.swift (#314)
1 parent 718a26a commit fa5bc72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Segment/Plugins/SegmentDestination.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public class SegmentDestination: DestinationPlugin, Subscriber, FlushCompletion
8181
*/
8282
// if customer specifies a different apiHost (ie: eu1.segmentapis.com) at app.segment.com ...
8383
if let host = segmentInfo?[Self.Constants.apiHost.rawValue] as? String, host.isEmpty == false {
84-
if host != analytics.configuration.values.writeKey {
84+
if host != analytics.configuration.values.apiHost {
8585
analytics.configuration.values.apiHost = host
8686
httpClient = HTTPClient(analytics: analytics)
8787
}

0 commit comments

Comments
 (0)