1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-05 07:50:24 +08:00

fix(crypto): encode and decode of nil data

This commit is contained in:
源文雨
2024-07-12 23:18:02 +09:00
parent 677b11f440
commit 8215abb695
3 changed files with 9 additions and 7 deletions

View File

@@ -54,10 +54,8 @@ func (wg *WG) Start(srcport, destport uint16) {
func (wg *WG) Run(srcport, destport uint16) {
wg.init(srcport, destport)
_, err := wg.me.ListenNIC()
if err != nil {
logrus.Warnln(err)
}
_, _ = wg.me.ListenNIC()
logrus.Info("[wg] stopped")
}
func (wg *WG) Stop() {