always update techntiium for test
This commit is contained in:
parent
bd061dfd55
commit
5ae9422083
2 changed files with 2 additions and 2 deletions
|
|
@ -192,7 +192,7 @@ func run() error {
|
|||
|
||||
if publicDNSIp.Equal(dynamicDNSIp) {
|
||||
glog.Infof("IPs of dyndns and current ip match, nothing to do: current=%s, dyndns=%s", publicDNSIp, dynamicDNSIp)
|
||||
return nil
|
||||
// return nil
|
||||
}
|
||||
// Send notification as glue records can't be modified programatically for godaddy :/
|
||||
defer notifyForIPChange(publicDNSIp, dynamicDNSIp)
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ func notifyForIPChange(oldIP, newIP net.IP) error {
|
|||
// Notify if dyndns ip is different to public
|
||||
// Currently send a message to Viktor via the webhook handler
|
||||
const url = "https://webhook.viktorbarzin.me/fb/message-viktor"
|
||||
body := []byte(fmt.Sprintf("Public IP (%s) is different than dynamic dns IP (%s). Job is running to update infra bind. As it stands GoDaddy does not provide an API to update glue records so please manually update the hostnames in the Godaddy UI to use the new IP: %s", oldIP.String(), newIP.String(), newIP.String()))
|
||||
body := []byte(fmt.Sprintf("Public IP (%s) is different than dynamic dns IP (%s). Job is running to update infra bind. As it stands Spaceship.com does not provide an API to update glue records so please manually update the hostnames in the Spaceship.com UI to use the new IP: %s", oldIP.String(), newIP.String(), newIP.String()))
|
||||
|
||||
// Send the HTTP request
|
||||
resp, err := http.Post(url, "application/json", bytes.NewBuffer(body))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue