mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Check link-local in tcp.go, track direction in link.go, fix compile error for mobile.go
This commit is contained in:
parent
ec5f7d9879
commit
43f798e82e
5 changed files with 25 additions and 24 deletions
|
@ -54,14 +54,14 @@ func (a *awdl) init(l *link) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (a *awdl) create(name, local, remote string) (*awdlInterface, error) {
|
||||
func (a *awdl) create(name, local, remote string, incoming bool) (*awdlInterface, error) {
|
||||
rwc := awdlReadWriteCloser{
|
||||
fromAWDL: make(chan []byte, 1),
|
||||
toAWDL: make(chan []byte, 1),
|
||||
}
|
||||
s := stream{}
|
||||
s.init(rwc)
|
||||
linkif, err := a.link.create(&s, name, "awdl", local, remote)
|
||||
linkif, err := a.link.create(&s, name, "awdl", local, remote, incoming, true)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue