Skip to content

Commit a1a930a

Browse files
committed
fix(ippool): fix no available ip bug
1 parent 86994d1 commit a1a930a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

smartdns/ippool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def FindIP(self, ip, name):
205205
# maybe something wrong
206206
tmp_ip_list = [
207207
tmp_ip for tmp_ip in re.split(r',|\s+', self.record[name]['default']) \
208-
if not re.search(r'[^0-9].', tmp_ip)]
208+
if not re.search(r'[^0-9.]', tmp_ip)]
209209
ip_list = [tmp_ip for tmp_ip in tmp_ip_list if self.monitor_mapping.check(name, tmp_ip)]
210210
if len(ip_list) == 0:
211211
logger.warning("no available ip for %s, use default ip" % name)

0 commit comments

Comments
 (0)