Rename AddWaygateTunnel to AddWaygate

This commit is contained in:
Anders Pitman
2022-03-07 12:05:05 -07:00
parent 1215162f49
commit 3687aa25b5
2 changed files with 2 additions and 2 deletions

View File

@@ -386,7 +386,7 @@ func (d *Database) DeleteDomain(domain string) {
d.persist()
}
func (d *Database) AddWaygateTunnel(domains []string) (string, error) {
func (d *Database) AddWaygate(domains []string) (string, error) {
d.mutex.Lock()
defer d.mutex.Unlock()

View File

@@ -129,7 +129,7 @@ func (h *WebUiHandler) handleWebUiRequest(w http.ResponseWriter, r *http.Request
fmt.Println(fqdn)
waygateId, err := h.db.AddWaygateTunnel([]string{fqdn})
waygateId, err := h.db.AddWaygate([]string{fqdn})
if err != nil {
w.WriteHeader(500)
h.alertDialog(w, r, err.Error(), "/")