From 26f3f20b4c707531b31a6384b0a927dcffa587f9 Mon Sep 17 00:00:00 2001 From: genshen Date: Mon, 13 May 2019 09:03:32 +0800 Subject: [PATCH] fix(auto-login): fix logout address due to mistake function name spelling. --- vpn_plugin/auto_login.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vpn_plugin/auto_login.go b/vpn_plugin/auto_login.go index fc0259a..68c2b52 100644 --- a/vpn_plugin/auto_login.go +++ b/vpn_plugin/auto_login.go @@ -144,7 +144,7 @@ func (al *AutoLogin) logoutAccount(uname, token string, cookies []*http.Cookie) } hc := http.Client{} - req, err := http.NewRequest("POST", al.LoginAddr(), + req, err := http.NewRequest("POST", al.LogoutAddr(), strings.NewReader(form.Encode())) if err != nil { log.Fatal(err)