diff --git a/src/web/web.rs b/src/web/web.rs index 2f87b1e4b160b0a5e1c660c2fa215aca48c2ee26..4765ac719527f5cedbc6d969a06e2bd11c0b364b 100644 --- a/src/web/web.rs +++ b/src/web/web.rs @@ -90,7 +90,7 @@ pub fn newdomain( "error": r.is_err(), "errormsg": r, "token": r, - "domainname": newdomain.to_string(), + "domainname": newdomain.to_string() }); } _ => { diff --git a/templates/newdomain.html.tera b/templates/newdomain.html.tera index 3b86510629f6c0d862fb04be0455384eab9a2f97..80b4d0c61ceed7e54c960368971db26e23ce4c9d 100644 --- a/templates/newdomain.html.tera +++ b/templates/newdomain.html.tera @@ -16,10 +16,10 @@ </div> <div> <h2>Set to your current IP:</h2> - <code>curl http://localhost:8053/api/update?token={{ data.token.Ok }}&domain={{ data.domainname }}</code> + <code>curl http://{{ server_url }}/api/update?token={{ data.token.Ok }}&domain={{ data.domainname }}</code> <h2>Set to a specific IP:</h2> - <code>curl http://localhost:8053/api/update?token={{ data.token.Ok }}&domain={{ data.domainname }}&ip=1.2.3.4</code> + <code>curl http://{{ server_url }}/api/update?token={{ data.token.Ok }}&domain={{ data.domainname }}&ip=1.2.3.4</code> </div> {% endif %}