mirror of
https://github.com/boringproxy/boringproxy.git
synced 2025-02-25 18:55:29 -06:00
Rename AddWaygateTunnel to AddWaygate
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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(), "/")
|
||||
|
||||
Reference in New Issue
Block a user