lead_zeppelin 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
data/lib/lead_zeppelin/apns.rb
CHANGED
@@ -18,7 +18,7 @@ module LeadZeppelin
|
|
18
18
|
Logger.thread 's'
|
19
19
|
begin
|
20
20
|
timeout(@opts[:timeout] || DEFAULT_TIMEOUT) do
|
21
|
-
socket = TCPSocket.new((@opts[:
|
21
|
+
socket = TCPSocket.new((@opts[:host] || HOST), (@opts[:port] || PORT))
|
22
22
|
ssl_socket = OpenSSL::SSL::SSLSocket.new socket, @ssl_context
|
23
23
|
|
24
24
|
ssl_socket.sync_close = true # when ssl_socket is closed, make sure the regular socket closes too.
|