5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-22 20:00:27 +00:00
Commit Graph

1011 Commits

Author SHA1 Message Date
Arceliar
300f471bab don't SetKeepAlive[Period] on tcp connections, since the behavior is platform specific 2018-12-16 18:32:50 -06:00
Arceliar
db034ce6bd replace panics with warning messages if the tun reader/writer return an error 2018-12-16 17:23:07 -06:00
Arceliar
d9f212dd39 don't panic if we write to a closed tun device because tun.close() was called 2018-12-16 17:01:59 -06:00
Arceliar
1a1e0553aa
Merge pull request #252 from Arceliar/refactoring
Refactoring
2018-12-15 18:26:04 -06:00
Arceliar
28c7d75a20 fix conflicts with nodeinfo and update that for new crypto type names 2018-12-15 18:11:02 -06:00
Neil Alexander
3ff0634156
Merge pull request #251 from Arceliar/fastpeer
Tune peering
2018-12-16 00:05:36 +00:00
Arceliar
89f9f5defb fix merge conflicts 2018-12-15 17:57:36 -06:00
Arceliar
8273fe54d2
Merge pull request #246 from neilalexander/metadata
NodeInfo support
2018-12-15 17:44:46 -06:00
Neil Alexander
e0ff3ca587
Rename Metadata to NodeInfo 2018-12-15 22:37:11 +00:00
Neil Alexander
226c72df16
Set max metadata size to 16kb 2018-12-15 13:18:35 +00:00
Neil Alexander
07c26176b6
Fix core.SetMetadata 2018-12-15 12:21:00 +00:00
Neil Alexander
9a5cf96c29
Rename admin socket getMeta to getMetadata 2018-12-15 12:18:52 +00:00
Neil Alexander
5417e33520
Merge branch 'develop' into metadata 2018-12-15 11:59:41 +00:00
Neil Alexander
7faff70d56
Merge pull request #254 from neilalexander/fixpeers
Fix panic if Peers or InterfacePeers is commented out
2018-12-15 11:57:04 +00:00
Neil Alexander
a50964b334
Fix panic if Peers or InterfacePeers is commented out 2018-12-15 11:57:25 +00:00
Neil Alexander
f5fa4da5b9
Merge branch 'develop' into metadata 2018-12-15 11:50:22 +00:00
Neil Alexander
fe30ec9a92
Merge pull request #253 from neilalexander/yggdrasilctl
Fix bug in yggdrasilctl where -endpoint gets ignored
2018-12-15 11:48:00 +00:00
Neil Alexander
98a544fd7d
Fix bug in yggdrasilctl where -endpoint gets ignored 2018-12-15 11:48:43 +00:00
Neil Alexander
92bb63f196
Use metadata from config file 2018-12-15 11:38:51 +00:00
Neil Alexander
d9884a5cac
Make use of metadata cache 2018-12-15 11:15:48 +00:00
Neil Alexander
d07e0ddfa0
Default metadata 2018-12-15 10:56:46 +00:00
Neil Alexander
8b63e841ea
Make threadsafe, add cache 2018-12-15 10:39:31 +00:00
Arceliar
4875ab8954 peer thread safey for dhtInfo updates 2018-12-14 21:44:31 -06:00
Arceliar
570e85c297 remove debug code 2018-12-14 21:12:25 -06:00
Arceliar
72cc1bb321 make genkeys use the new address/crypto packages 2018-12-14 20:58:52 -06:00
Arceliar
ea4ca02681 fix code after moving address/crypto/util 2018-12-14 20:49:18 -06:00
Neil Alexander
cdd2e7910a
Merge remote-tracking branch 'origin/develop' into metadata 2018-12-15 00:48:54 +00:00
Neil Alexander
d5031a5cb6
Metadata exchange without sessions 2018-12-15 00:48:27 +00:00
Arceliar
2c68d41409 move files, still need to fix exports and compile errors 2018-12-14 18:30:36 -06:00
Arceliar
abd8b69979 send a switch message immediately when peering, and use OS-level TCP keep-alive (shouldn't matter right now, since we have application-level keep-alive that preempts it, but important later) 2018-12-14 18:15:35 -06:00
Arceliar
06f58e5168
Merge pull request #250 from neilalexander/refactor
Refactoring
2018-12-14 17:57:26 -06:00
Neil Alexander
affddfb2fe
Merge remote-tracking branch 'origin/develop' into metadata 2018-12-14 22:33:00 +00:00
Neil Alexander
f9dc300787
Define Adapter base type/interface 2018-12-14 18:29:00 +00:00
Neil Alexander
8045cb4dc3
Define generic adapter type, rename tunDevice to tunAdapter 2018-12-14 18:21:08 +00:00
Neil Alexander
f28360ce4d
Fix debug builds (foiled by debug builds every time) 2018-12-14 18:10:39 +00:00
Neil Alexander
2a38ad07cd
Don't send ICMPv6 back when tun disabled 2018-12-14 18:08:40 +00:00
Neil Alexander
9eaa2566c1
Parameterise tun.init 2018-12-14 18:08:13 +00:00
Neil Alexander
1a7df477b0
Also correct tcp: into tcp:// 2018-12-14 17:55:07 +00:00
Neil Alexander
3ca5f10733
Don't try to correct peers with no schemes in addPeer 2018-12-14 17:52:54 +00:00
Neil Alexander
ccf6ce07a4
Fix Peers and InterfacePeers when not in correct format 2018-12-14 17:49:42 +00:00
Neil Alexander
10157483f9
Move tunDevice into router 2018-12-14 17:35:02 +00:00
Neil Alexander
d9b376b3ad
Merge pull request #249 from neilalexander/deb
Update debian package again
2018-12-14 14:29:15 +00:00
Neil Alexander
e1c7983752
Update debian package to fix systemd disabling (not good for remote systems) and add group yggdrasil for admin socket/conf 2018-12-14 14:25:26 +00:00
Arceliar
ce98aac504
Merge pull request #245 from neilalexander/deb
Update debian package behavior
2018-12-12 17:39:22 -06:00
Neil Alexander
a9907a7878
Fix debug builds after 64060a4 2018-12-12 22:59:55 +00:00
Neil Alexander
64060a447c
Remove metadata-peer association until we have some sensible way to cache it 2018-12-12 22:58:16 +00:00
Neil Alexander
2056e75ad5
Remove friendlyname fields from yggdrasilctl 2018-12-12 22:51:00 +00:00
Neil Alexander
74de8c9416
Consistent function naming for metadata 2018-12-12 22:48:04 +00:00
Neil Alexander
042a3400fe
Wrap the metadata with a mutex to guarantee thread safety across core/router/sessions 2018-12-12 22:40:49 +00:00
Neil Alexander
73ed563dde
Update debian package behavior
It now won't enable itself automatically on install and it will
only start Yggdrasil if enabled in systemd. It also won't break
during install on systems where systemd is not present.
2018-12-12 20:29:56 +00:00