5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-23 19:15:40 +00:00
Commit Graph

2397 Commits

Author SHA1 Message Date
Arceliar
707e23d392
Merge pull request #95 from Arceliar/tcpfix
fix npe, these don't need to be pointers
2018-05-27 13:28:51 -05:00
Arceliar
02ba9dc97c fix npe, these don't need to be pointers 2018-05-27 13:22:21 -05:00
Neil Alexander
5131d854e5
Merge pull request #94 from Arceliar/main-fixes
hjson bugfixes
2018-05-27 19:06:16 +01:00
Arceliar
7b12493417 panic if tcp startup fails, since otherwise a nil pointer occurs in multicast. make udp do the same thing. 2018-05-27 12:56:33 -05:00
Arceliar
e62cfa8c84 revert removal of useconffile 2018-05-27 12:31:35 -05:00
Arceliar
fcaabe4aac Fix some issues with hjson by converting to json then parsing to go struct, and remove useconffile option since it doesn't seem to add anything over stdin and increases the attack surface 2018-05-26 20:40:19 -05:00
Neil Alexander
71d3a2b187
Merge pull request #93 from neilalexander/bugfixes
Fix MulticastInterfaces and accidental truncation of addresses on macOS/BSD
2018-05-26 21:55:36 +01:00
Neil Alexander
a0f547cc1b
Fix being able to enable/disable multicast 2018-05-26 21:50:47 +01:00
Neil Alexander
bc899c395a
Fix accidental truncation of addresses ending in 8 on macOS and BSD 2018-05-26 21:47:54 +01:00
Arceliar
fae00e962f
Merge pull request #90 from neilalexander/admin
Add getMulticastInterfaces and getSelf to yggdrasilctl
2018-05-23 17:52:06 -05:00
Neil Alexander
cae589d2d3
More nice 2018-05-23 22:21:37 +01:00
Neil Alexander
5d87601118
Add getMulticastInterfaces and getSelf to yggdrasilctl 2018-05-23 22:13:52 +01:00
Neil Alexander
9b5965fd9a
Merge pull request #89 from neilalexander/config
Fix debian normalisation in postinst
2018-05-23 21:35:56 +01:00
Neil Alexander
77d67a1569
Fix debian normalisation in postinst 2018-05-23 21:31:52 +01:00
Arceliar
9e5964dcd4
Merge pull request #87 from neilalexander/config
Update configuration names and update multicast behaviour
2018-05-23 13:08:34 -05:00
Neil Alexander
8456b2e1bc
Fix substitution 2018-05-23 18:53:44 +01:00
Neil Alexander
1fd53bcb7d
Update comments in configuration 2018-05-23 14:02:13 +01:00
Neil Alexander
8a46253c1f
Normalise existing yggdrasil.conf on debian package install/upgrade 2018-05-23 13:26:08 +01:00
Neil Alexander
34f7b7ca14
Fix AllowedBoxPubs 2018-05-23 12:32:26 +01:00
Neil Alexander
ce854a76bd
Add -normaliseconf option and temporarily correct old config item names in running config 2018-05-23 12:04:27 +01:00
Neil Alexander
9d9083e373
Update configuration names, fix multicast interface selection 2018-05-23 11:28:20 +01:00
Neil Alexander
6f79184c9b
Move multicasting into yggdrasil package 2018-05-23 11:13:53 +01:00
Neil Alexander
388ae09fca
Rename some config items 2018-05-22 23:43:29 +01:00
Arceliar
b10ae51565
Merge pull request #85 from neilalexander/yggdrasilctl
Human-readable formatting in yggdrasilctl
2018-05-21 19:21:00 -05:00
Arceliar
14b2dd0c61
Merge pull request #86 from neilalexander/youraddresses
Show IPv6 address and subnet on startup
2018-05-21 19:18:08 -05:00
Neil Alexander
f6ea6fcc85
Add addAllowedBoxPub, removeAllowedBoxPub, getAllowedBoxPubs 2018-05-21 18:12:36 +01:00
Neil Alexander
04b3e84023
Show your IPv6 address and subnet when starting 2018-05-21 16:15:31 +01:00
Neil Alexander
9567446f50
Offload formatting to yggdrasilctl and keep precision in JSON 2018-05-21 15:21:23 +01:00
Neil Alexander
59688dcab3
Fix formatting of bytes_sent, bytes_recvd, last_seen, uptime 2018-05-21 15:05:01 +01:00
Neil Alexander
cc4ee91279
Allow JSON output using -json argument 2018-05-21 14:29:27 +01:00
Neil Alexander
61c640dbde
Add addPeer and removePeer 2018-05-21 14:25:11 +01:00
Neil Alexander
ca3e541d3b
Friendly formats for getDHT, getSessions, setTunTap etc 2018-05-21 14:14:57 +01:00
Neil Alexander
201701ae4a
Add some pretty printing to yggdrasilctl, small modifications to JSON formatting in admin socket 2018-05-21 13:54:51 +01:00
Neil Alexander
bd32f5890b
Run gofmt -s -w 2018-05-21 07:28:03 +01:00
Arceliar
cc6fb8bd98
Merge pull request #84 from neilalexander/admin
JSON support for admin socket
2018-05-20 20:31:24 -05:00
Neil Alexander
ab3eb9877a
Fix builds 2018-05-20 23:59:42 +01:00
Neil Alexander
cda7a2abcc
Builds for yggdrasilctl plus usage info and fixes 2018-05-20 23:46:02 +01:00
Neil Alexander
ee99ae008d
Add yggdrasilctl 2018-05-20 23:32:17 +01:00
Neil Alexander
79131bb959
Minor tweaks 2018-05-20 23:25:07 +01:00
Neil Alexander
aae570de2a
Optional parameters are now square instead of pointed brackets, avoid nils for help 2018-05-20 21:57:05 +01:00
Neil Alexander
c765e0566f
Convert rest of functions, fix setTunTap 2018-05-20 21:54:15 +01:00
Neil Alexander
c75566d5ac
Various fixes and error catching, add setTunTap 2018-05-20 21:44:30 +01:00
Neil Alexander
4ecc7ce860
Add getTunTap to JSON admin socket 2018-05-20 19:42:37 +01:00
Neil Alexander
c3ca5c64b1
Add some more functions to JSON admin socket 2018-05-20 19:23:43 +01:00
Neil Alexander
9713e73969
Fix dot 2018-05-20 17:25:13 +01:00
Neil Alexander
a6ef7166ea
Start JSON-ifying the admin socket 2018-05-20 17:21:14 +01:00
Neil Alexander
89b7be1409
Merge pull request #83 from Arceliar/peerInfo
Add uptime and bytes sent/recvd to  the `peer` struct and getPeers results
2018-05-19 10:09:42 +01:00
Arceliar
5c0636eb3d add uptime and bytes sent/recvd to peer struct and getPeers 2018-05-18 20:41:02 -05:00
Arceliar
fdb826578f
Merge pull request #82 from neilalexander/admin
Track TX/RX bytes over session and if MTU was adjusted, adjust MTU exchange behaviour, send session pings on TUN/TAP change
2018-05-18 17:26:33 -05:00
Neil Alexander
ca96bbf014
Accept exchanging an MTU of 0 to signify that TUN/TAP is disabled, don't send traffic to a node in that case 2018-05-18 18:56:33 +01:00