chennqqi/godnslog

Bug: 新建的用户,经常出现无法ping,无法dns解析的问题new users often fail to Ping and DNS resolution

hktalent opened this issue · 2 comments

bug:新建的用户,经常出现无法ping,无法dns解析的问题

但是重启docker又正常了
Bug: new users often fail to Ping and DNS resolution

But restarting docker is normal again

这里看上去有问题

	ipv4Exp := `((?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))`
	ipv4Exp = ipv4Exp + strings.Replace("."+domain, ".", `\.`, -1)
	ipv4uExp := `(?i:0x)?([0-f]?[0-f]{7})`
	ipv4uExp = ipv4uExp + strings.Replace("."+domain, ".", `\.`, -1)
	ipv4bExp := `(?:0b)?((?:0|1){25,32})`
	ipv4bExp = ipv4bExp + strings.Replace("."+domain, ".", `\.`, -1)

为什么不修改为呢?

	ipv4Exp := `.*?`
	ipv4Exp = ipv4Exp + strings.Replace("."+domain, ".", `\.`, -1)
	ipv4uExp := `.*?`
	ipv4uExp = ipv4uExp + strings.Replace("."+domain, ".", `\.`, -1)
	ipv4bExp := `.*?`
	ipv4bExp = ipv4bExp + strings.Replace("."+domain, ".", `\.`, -1)

这样不是所有的三级、四级域名都匹配了吗

放弃