Skip to content

Commit

Permalink
revert: fix(login): ensure being in the dhcp table before login (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
unbyte committed Oct 8, 2022
1 parent d6a85cd commit 6e0a17e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pkg/handler/ipgw.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6e0a17e

Please sign in to comment.