1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-09 02:02:41 +08:00

add pool & writer

This commit is contained in:
fumiama
2022-01-01 19:32:15 +08:00
parent ef6b5d7293
commit c66e524c51
7 changed files with 227 additions and 82 deletions

View File

@@ -6,6 +6,7 @@ import (
base14 "github.com/fumiama/go-base16384"
curve "github.com/fumiama/go-x25519"
"github.com/sirupsen/logrus"
"github.com/fumiama/WireGold/config"
"github.com/fumiama/WireGold/gold/link"
@@ -53,7 +54,10 @@ func (wg *WG) Start(srcport, destport, mtu uint16) {
func (wg *WG) Run(srcport, destport, mtu uint16) {
wg.init(srcport, destport, mtu)
wg.me.ListenFromNIC()
_, err := wg.me.ListenFromNIC()
if err != nil {
logrus.Panicln(err)
}
}
func (wg *WG) Stop() {