mirror of
https://github.com/taigrr/godns
synced 2025-01-18 04:03:25 -08:00
add get sub-domain func
This commit is contained in:
parent
8c554c329b
commit
aca4a9ca27
@ -89,6 +89,10 @@ func get_domain(name string) int64 {
|
|||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func get_subdomain(name string) int64 {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
func post_data(url string, content url.Values) (string, error) {
|
func post_data(url string, content url.Values) (string, error) {
|
||||||
client := &http.Client{}
|
client := &http.Client{}
|
||||||
values := generate_header(content)
|
values := generate_header(content)
|
||||||
|
2
godns.go
2
godns.go
@ -35,7 +35,7 @@ func dns_loop(loop chan bool) {
|
|||||||
|
|
||||||
//Continue to check the IP of sub-domain
|
//Continue to check the IP of sub-domain
|
||||||
// if len(currentIP) > 0 {
|
// if len(currentIP) > 0 {
|
||||||
get_domain(Configuration.Domain)
|
domain_id := get_domain(Configuration.Domain)
|
||||||
// }
|
// }
|
||||||
|
|
||||||
api_version()
|
api_version()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user