Jeff
a5b09c47e1
Merge pull request #1262 from notlesh/bandaids-for-sockaddr-refactor-2020-05-11
...
Bandaids for sockaddr refactor 2020 05 11
4 years ago
Stephen Shelton
aee96e53a3
Refactor Addr -> IpAddress/SockAddr
4 years ago
Jeff Becker
635dc4fe13
unbreak router hive
...
llarp/config/config.cpp:
respect [network]:type option
llarp/handlers/exit.cpp:
when [network]:type is null dont init tun interface
llarp/service/context.cpp:
respect [network]:type option
change endpoint name back to "default"
llarp/tooling/router_hive.cpp:
dont use LogicCall for obtaining RCs from underlying relays, it crashes the mainloop and it's probably safe to readonly access RCs.
pybind/common.hpp:
remove typecasters as we use C++17 now
pybind/llarp/config.cpp:
remove SnappConfig
wire up NetworkConfig
pybind/llarp/handlers/pyhandler.hpp:
remove SnappConfig from constructor
pybind/llarp/handlers/pyhandler.cpp:
update constructor implementation to match header
test/hive/hive.py:
remove broke endpoint related code
wire up null endpoint option using NetworkConfig
use index at 0 for relays and clients instead of 1
dont add a python endpoint to all clients
4 years ago
Jeff Becker
f1edca9fa1
additional cleanup of cruft
4 years ago
Jeff Becker
c4b5b641bb
default to default data dir given by params instead
4 years ago
Jeff Becker
e33a1a2e0f
proper autodetect of ifname and ifaddr
4 years ago
Jason Rhinelander
4f09090c58
Add [network]:enabled to ignored settings list
...
No one knows what this option does or did, but it is in some generated
config files.
4 years ago
Jeff Becker
96a6d81380
add ifname and ifaddr to network config parsing
4 years ago
Stephen Shelton
78eb0d976d
nonstd::optional -> std::optional
4 years ago
Jeff Becker
7c12347e80
upstream-dns -> upstream
4 years ago
Stephen Shelton
42a7bcd434
Less invasive fix for Addr
4 years ago
Stephen Shelton
f2a26adcaa
Move all [endpoint] options to [network]
4 years ago
Stephen Shelton
559610ec94
Properly handle empty config default values
4 years ago
Stephen Shelton
dd9ab0f1d5
Remove ability to have multiple endpoints/snodes from config
4 years ago
Stephen Shelton
b7451b7632
Rip out tag, prefetch tags/addrs from Endpoint
4 years ago
Stephen Shelton
1d12e9d14e
Lokinet_INIT() is already checked in main(), so remove from config
4 years ago
Stephen Shelton
3198a8b139
Handle blacklist-snode validation in config
4 years ago
Stephen Shelton
2730491641
Remove NetworkConfig's freehand options
4 years ago
Stephen Shelton
2bc908cd40
Remove [dns]:local-dns in favor of [dns]:bind
4 years ago
Stephen Shelton
df01770466
Rename SnappConfig -> EndpointConfig
4 years ago
Stephen Shelton
93b35c92a7
Eradicate service::Config
4 years ago
Stephen Shelton
cbd93fcb09
Find "-snapp" conf sections, add more snapp conf options
4 years ago
Jason Rhinelander
5cf2126bb9
make format
4 years ago
Jason Rhinelander
1697bf90fe
C++17
...
Compiles with C++17, replaces ghc::filesystem with std::filesystem,
nonstd::optional with std::optional, and llarp::string_view with
std::string_view.
4 years ago
Stephen Shelton
f0f9b1abdd
Allow 0 as outbound port
4 years ago
Stephen Shelton
f8439dab61
Misc aesthetic tweaks
4 years ago
Stephen Shelton
7d83611a0a
Default outbound port to 0, not 1090
4 years ago
Stephen Shelton
c4de0f8493
Add more ignored config options
4 years ago
Stephen Shelton
517922e4c3
Reintroduce support for configurable key files
4 years ago
Stephen Shelton
331770b348
Add ability to tolerate (ignore) old config options
...
This allows us to explicitly ignore (with a warning) old options
that are no longer supported.
4 years ago
Stephen Shelton
cdd4439cff
Temporary fix for [dns]bind and [dns]local-dns
4 years ago
Stephen Shelton
526b1320b7
Some maybe-fixes for RouterHive post config cleanup
5 years ago
Stephen Shelton
de8e44ba21
Re-apply clang-format rules after rebasing
5 years ago
Stephen Shelton
a66f502ed6
Remove [netdb] conf and place it under data-dir
...
This does three things:
1) Remove the [netdb] conf section,
2) Rename the subdir 'netdb' -> 'nodedb'
3) Place 'nodedb' under 'data-dir'
5 years ago
Stephen Shelton
be014175e9
Consolidate logging initialization logic
5 years ago
Stephen Shelton
6909e20588
Fix logging initialization and flush at program exit
5 years ago
Stephen Shelton
d3bcc05aa6
Organize some constants and default values
5 years ago
Stephen Shelton
7ea8d62640
Use fs::path over std::string for files
5 years ago
Stephen Shelton
28c1ca9c7a
Handle missing IP address in conf properly
5 years ago
Stephen Shelton
0e5e9a1222
Silently ignore config file if it exists already
5 years ago
Stephen Shelton
1fc7c61d1f
Share common conf comments for client and relay
5 years ago
Stephen Shelton
3739fc1d70
Reinstate multi-valued option
5 years ago
Stephen Shelton
a6787657be
Refactor config comments to take list of strings
5 years ago
Stephen Shelton
a8671cf9c7
Rename config classes for clarity
...
ConfigDefinition -> OptionDefiniton
Configuration -> ConfigDefinition
5 years ago
Stephen Shelton
f250b7adcb
Remove pidfile support
5 years ago
Stephen Shelton
4f77080f75
Remove optional<> from block-bogons
5 years ago
Stephen Shelton
4d053231d3
Define config defaults as constexpr
5 years ago
Stephen Shelton
adfcbd1d0b
Slight cleanup of k:v option maps
5 years ago
Stephen Shelton
e06c2e4502
Check that [router]min-connections <= [router]max
5 years ago
Stephen Shelton
6fd270ba09
Rip out link type spec and factory
...
We only support IWP now, so this is all effectively dead code.
5 years ago