Skip to content

Commit 9718ef6

Browse files
authored
Merge pull request #71 from smashery/dns_resolution_fix
Use custom resolver when creating the socket
2 parents acfc23d + 32f2b2a commit 9718ef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rex/socket/comm/local.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def self.create_by_type(param, type, proto = 0)
262262
end
263263

264264
ip6_scope_idx = 0
265-
ip = param.peerhost
265+
ip = Rex::Socket.getaddress(param.peerhost)
266266
port = param.peerport
267267

268268
if param.proxies

0 commit comments

Comments
 (0)