Add wifi_ssid and wifi_bssid route and DNS rules

This commit is contained in:
世界 2023-11-18 13:51:32 +08:00 committed by Kyōchikutō | キョウチクトウ
parent d8d7ab2d57
commit 0acfd6a1c6
No known key found for this signature in database
GPG Key ID: A98846921CD44363

View File

@ -60,11 +60,11 @@ func (s *CommandServer) handleLogConn(conn net.Conn) error {
for element := s.savedLines.Front(); element != nil; element = element.Next() {
savedLines = append(savedLines, element.Value)
}
s.access.Unlock()
subscription, done, err := s.observer.Subscribe()
if err != nil {
return err
}
s.access.Unlock()
defer s.observer.UnSubscribe(subscription)
for _, line := range savedLines {
err = writeLog(conn, []byte(line))