mirror of
https://github.com/taigrr/godns
synced 2025-01-18 04:03:25 -08:00
enhance error handling
This commit is contained in:
parent
9fb9715bc1
commit
eed9320bae
4
godns.go
4
godns.go
@ -56,6 +56,10 @@ func dns_loop(loop chan bool) {
|
|||||||
|
|
||||||
sub_domain_id, ip := get_subdomain(domain_id, Configuration.Sub_domain)
|
sub_domain_id, ip := get_subdomain(domain_id, Configuration.Sub_domain)
|
||||||
|
|
||||||
|
if sub_domain_id == "" || ip == "" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
fmt.Printf("currentIp is:%s\n", currentIP)
|
fmt.Printf("currentIp is:%s\n", currentIP)
|
||||||
log.Infof("currentIp is:%s\n", currentIP)
|
log.Infof("currentIp is:%s\n", currentIP)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user