Jeff Becker
a9109aa91b
* deprecate old unused lokid rpc options
...
* use lokimq::address in config and in lokid rpc
* bump lokimq submodule
2020-07-02 11:13:31 -04:00
Jeff Becker
80919a3b76
address feedback.
...
* use exceptions when fetching identity key instead of std::optional, will throw on fail
* fix up config options for endpoint auth and add better docs
* add llarp::serive::AuthType enum for controlling what kind of endpoint auth to use
2020-07-02 11:13:31 -04:00
Jason Rhinelander
a7c42ab2bd
Use lokimq's hex/base32z encoding/decoding
2020-07-02 11:13:31 -04:00
Jeff Becker
e85efcf7ce
move include so it's included on all platforms including windows
2020-07-02 11:13:30 -04:00
Jeff Becker
00aa78c80a
it's safe to call reply from another thread because all it does is fufill a promoise
2020-07-02 11:13:30 -04:00
Jeff Becker
0f21eeccb0
* rework exit codepath to allow multiple exits
...
* rework net code for ip ranges to be cleaner
* clean up endpoint auth code
* refactor config to validate network configs before setting up endpoints
* remove buildone from path/pathbuilder.cpp so we don't spam connection attempts
2020-07-02 11:13:30 -04:00
Jeff Becker
3cdca30a74
more auth shit
2020-07-02 11:13:30 -04:00
Jeff Becker
0d6e3bcd89
fix crashing tests
2020-07-02 11:13:30 -04:00
Jeff Becker
98a3b45f16
disable logging to see why ci tests die like a sucka
2020-07-02 11:12:50 -04:00
Jeff Becker
63b56d55a9
check pw and pw_dir to be not null so that if either are null it bails to else block
2020-07-02 11:12:06 -04:00
Jeff Becker
2371e416bd
dont use $HOME when checking for default data dir
2020-07-02 11:12:05 -04:00
Jeff Becker
e13e886df9
fix up event loop crap so that unit tests pass
2020-07-02 11:10:06 -04:00
Jeff Becker
e95b9d530e
fix unit tests, make them pass
2020-07-02 11:10:06 -04:00
Jeff Becker
1779f33506
fix makefile fromat target
...
use lokimq::address instead of std::string or std::string_view
2020-07-02 11:07:34 -04:00
Jeff Becker
ca9e015ca4
virtual destructor
2020-07-02 11:07:34 -04:00
Jeff Becker
397d558af8
wtf
2020-07-02 11:07:34 -04:00
Jeff Becker
59eb1b0842
make format
2020-07-02 11:07:34 -04:00
Jeff Becker
f1e7fc2cba
make format and update submodule
2020-07-02 11:07:34 -04:00
Jeff Becker
f4971a88fd
use lokimq workers instead of llarp: 🧵 :ThreadPool
2020-07-02 11:07:34 -04:00
Jeff Becker
5abf111159
endpoint auth whitelist
2020-07-02 11:07:33 -04:00
Jeff Becker
9f11b03016
enable exit node again
2020-07-02 11:07:33 -04:00
Jeff Becker
a42d3d51c3
more
2020-07-02 11:07:33 -04:00
Jeff Becker
1e8368b636
make it compile
2020-07-02 11:07:33 -04:00
Jeff Becker
61c5808765
exit authentication (initial)
2020-07-02 11:07:33 -04:00
Jeff Becker
be01808a6b
more
2020-07-02 11:07:33 -04:00
Jeff Becker
c5dbb670ca
set sane defaults for config, implement lmq rpc server, update lokinetmon
2020-07-02 11:07:33 -04:00
Jeff Becker
6bbf7beaf5
add stubs for lmq rpc server
2020-07-02 11:07:33 -04:00
Jeff Becker
1175a583d2
initial working code
2020-07-02 11:07:32 -04:00
Stephen Shelton
13b0a4f2fc
WIP: LokidRpcClient
2020-07-02 11:07:32 -04:00
Jeff Becker
9bfff61d08
initial wack at lokimq
2020-07-02 11:07:32 -04:00
Stephen Shelton
fd4b03f896
WIP: LokidRpcClient
2020-07-02 11:07:32 -04:00
Stephen Shelton
17026a0b21
Remove libabyss and rpc::Caller/rpc::Server
2020-07-02 11:07:32 -04:00
Jeff Becker
749c5a813c
require at least 2 hops because otherwise stuff wont publish
2020-07-02 11:07:32 -04:00
Jeff Becker
d5b4dbe052
more
2020-07-02 11:07:32 -04:00
Jeff Becker
b1259e25c5
set sane defaults for config, implement lmq rpc server, update lokinetmon
2020-07-02 11:07:31 -04:00
Jeff Becker
fb8b8e2e56
add stubs for lmq rpc server
2020-07-02 11:07:31 -04:00
Jeff Becker
ad882d0d70
initial working code
2020-07-02 11:07:31 -04:00
Stephen Shelton
78256e3228
WIP: LokidRpcClient
2020-07-02 11:07:31 -04:00
Jeff Becker
0006751d80
initial wack at lokimq
2020-07-02 11:07:31 -04:00
Stephen Shelton
91725a8530
WIP: LokidRpcClient
2020-07-02 11:07:31 -04:00
Stephen Shelton
11951510bf
Remove libabyss and rpc::Caller/rpc::Server
2020-07-02 11:07:30 -04:00
Stephen Shelton
0aa43c6b07
Pass RuntimeOptions instead of 'bool isRelay'
2020-07-01 08:38:56 -06:00
Stephen Shelton
daecd6eda5
Remove llarp_config and llarp_main
2020-06-29 14:51:13 -06:00
Stephen Shelton
d85e48c9d0
Use llarp::Context::CallSafe() for vpn AsyncClose()
2020-06-29 14:39:31 -06:00
Stephen Shelton
b5d6a73ffd
Rip out most of C API
2020-06-29 13:55:59 -06:00
Thomas Winget
32843510bb
libunbound can now be built as a static dep
2020-06-15 18:44:59 -04:00
Thomas Winget
8f0330c9f2
std::vector instead of std::array
2020-06-15 18:32:57 -04:00
Thomas Winget
b875d40491
restructure how upstream dns replies are handled
...
llarp::dns::Message does not fully support DNS packets,
so converting the upstream response to one will not work
for all query types. Also it is kinda silly to begin with,
as the upstream reply is already a network packet, ready to go.
2020-06-15 18:32:57 -04:00
Thomas Winget
221e9ff5de
make format
2020-06-15 18:32:57 -04:00
Thomas Winget
df284cb757
proper CMake finding and using of libunbound
2020-06-15 18:32:57 -04:00