From 6e0a17ebf891350adaca1f80242e0115b3684c98 Mon Sep 17 00:00:00 2001 From: unbyte Date: Sat, 8 Oct 2022 14:47:45 +0800 Subject: [PATCH] revert: fix(login): ensure being in the dhcp table before login (#49) --- pkg/handler/ipgw.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pkg/handler/ipgw.go b/pkg/handler/ipgw.go index 9f3eac1..0ce9cfd 100644 --- a/pkg/handler/ipgw.go +++ b/pkg/handler/ipgw.go @@ -46,16 +46,7 @@ func (h *IpgwHandler) Login(account *model.Account) error { password string body string err error - resp *http.Response ) - - // 修复首次登录失败问题 - resp, err = h.client.Get("http://198.18.0.1") - if err != nil { - return err - } - defer resp.Body.Close() - if account.Cookie != "" { body, err = h.loginCookie(account.Cookie) // 通过cookie登录 } else {