~ubuntu-branches/ubuntu/wily/ruby-net-ssh/wily

« back to all changes in this revision

Viewing changes to lib/net/ssh/transport/packet_stream.rb

  • Committer: Package Import Robot
  • Author(s): Lucas Nussbaum
  • Date: 2015-05-05 09:42:11 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20150505094211-qiuq102sqqkzlg2s
Tags: 1:2.9.2-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
  # per the SSH2 protocol. It also adds an abstraction for polling packets,
15
15
  # to allow for both blocking and non-blocking reads.
16
16
  module PacketStream
 
17
    PROXY_COMMAND_HOST_IP = '<no hostip for proxy command>'.freeze
 
18
 
17
19
    include BufferedIo
18
20
 
19
21
    def self.extended(object)
64
66
          addr = getpeername
65
67
          Socket.getnameinfo(addr, Socket::NI_NUMERICHOST | Socket::NI_NUMERICSERV).first
66
68
        else
67
 
          "<no hostip for proxy command>"
 
69
          PROXY_COMMAND_HOST_IP
68
70
        end
69
71
    end
70
72