From a4c47e1cd7bcf4e8601fc01550c1c87cc0cced60 Mon Sep 17 00:00:00 2001 From: Christoph Hartmann Date: Tue, 17 Nov 2015 12:12:59 +0100 Subject: [PATCH] bugfix: fix regular expression to leave port colon --- lib/resources/port.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/resources/port.rb b/lib/resources/port.rb index 665393c9d..4e94c64d5 100644 --- a/lib/resources/port.rb +++ b/lib/resources/port.rb @@ -179,7 +179,7 @@ class LinuxPorts < PortsInfo def parse_net_address(net_addr, protocol) if protocol.eql?('tcp6') || protocol.eql?('udp6') # prep for URI parsing, parse ip6 port - ip6 = /^(\S+:)(\d+)$/.match(net_addr) + ip6 = /^(\S+):(\d+)$/.match(net_addr) ip6addr = ip6[1] ip6addr = '::' if /^:::$/.match(ip6addr) # build uri