-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Labels
bugSomething isn't workingSomething isn't working
Description
After disconnecting from wifi and connecting again on my laptop, it just goes into an endless loop of Stream Closed, despite having sent and received a kick after reconnection.
The only thing that actually helps to reconnect is to restart the weron vpn ip process
command
# node 1 (nixOS laptop)
weron -v 6 vpn ip --community 'somecomm' --password 'strongpass' --key 'longkey' --ips 10.10.1.1/24 --static --dev weron0
# node 2 (nixOS homelab)
weron -v 6 vpn ip --community 'somecomm' --password 'strongpass' --key 'longkey' --ips 10.10.1.2/24 --static --dev weron0
logs from node1 (laptop)
# fresh connection on starting weron
{"level":"info","id":"[\"10.10.1.2/24\"]","time":"2023-09-25T16:00:47-03:00","message":"Connected to peer"}
# disconnecting wifi
{"level":"debug","error":"Stream closed","channelID":"weron/ip/primary","peerID":"[\"10.10.1.2/24\"]","time":"2023-09-25T15:53:23-03:00","message":"Could not write to peer, continuing"}
... # repeats same message
# reconnecting wifi
{"level":"debug","label":"weron/ip/id","peer":"451a9302-6c3d-4197-ad61-f215c6c8c937","time":"2023-09-25T15:53:23-03:00","message":"Connected to channel"}
{"level":"debug","channelID":"weron/ip/id","peerID":"[\"10.10.1.2/24\"]","candidates":1,"timestamp":1695667830493778484,"time":"2023-09-25T15:53:23-03:00","message":"Sending greeting"}
{"level":"debug","label":"weron/ip/primary","peer":"451a9302-6c3d-4197-ad61-f215c6c8c937","time":"2023-09-25T15:53:23-03:00","message":"Connected to channel"}
{"level":"debug","channelID":"weron/ip/id","peerID":"[\"10.10.1.2/24\"]","time":"2023-09-25T15:53:23-03:00","message":"Received greeting"}
{"level":"debug","channelID":"weron/ip/id","peerID":"[\"10.10.1.2/24\"]","id":"","time":"2023-09-25T15:53:23-03:00","message":"Sending kick"}
{"level":"debug","channelID":"weron/ip/id","peerID":"[\"10.10.1.2/24\"]","id":"[\"10.10.1.2/24\"]","time":"2023-09-25T15:53:23-03:00","message":"Received kick"}
{"level":"debug","error":"Stream closed","channelID":"weron/ip/primary","peerID":"[\"10.10.1.2/24\"]","time":"2023-09-25T15:53:23-03:00","message":"Could not write to peer, continuing"}
... # repeats
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working