use self.peerhost (which could use 'PeerAddr') instead of 'PeerHost'
git-svn-id: file:///home/svn/framework3/trunk@6021 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
560f2df2dd
commit
bfc23d2886
|
@ -140,8 +140,8 @@ class Rex::Socket::Parameters
|
||||||
|
|
||||||
# If no comm was supplied, try to use the comm that is best fit to
|
# If no comm was supplied, try to use the comm that is best fit to
|
||||||
# handle the provided host based on the current routing table.
|
# handle the provided host based on the current routing table.
|
||||||
if (self.comm == nil and hash['PeerHost'])
|
if (self.comm == nil and self.peerhost)
|
||||||
self.comm = Rex::Socket::SwitchBoard.best_comm(hash['PeerHost'])
|
self.comm = Rex::Socket::SwitchBoard.best_comm(self.peerhost)
|
||||||
end
|
end
|
||||||
|
|
||||||
# If we still haven't found a comm, we default to the local comm.
|
# If we still haven't found a comm, we default to the local comm.
|
||||||
|
|
Loading…
Reference in New Issue