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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user