lib/apnserver/client.rb in bpoweski-apnserver-0.0.7 vs lib/apnserver/client.rb in bpoweski-apnserver-0.0.8

- old
+ new

@@ -16,10 +16,10 @@ @context = OpenSSL::SSL::SSLContext.new @context.cert = OpenSSL::X509::Certificate.new(File.read(self.pem)) @context.key = OpenSSL::PKey::RSA.new(File.read(self.pem), self.password) - @sock = TCPSocket.new(self.host, self.port) + @sock = TCPSocket.new(self.host, self.port.to_i) @ssl = OpenSSL::SSL::SSLSocket.new(@sock, @context) @ssl.connect return @sock, @ssl end \ No newline at end of file