Commit Graph

7297 Commits

Author SHA1 Message Date
Jeff
5a5765edd5
Merge pull request #1756 from majestrate/ngtcp2-build-static-fix-2021-10-06
always build ngtcp2 as static
2021-10-06 10:13:22 -04:00
Jeff Becker
d354a35869
always build ngtcp2 as static
squashme
2021-10-06 10:09:04 -04:00
Jason Rhinelander
e32f7faf55
Merge pull request #1751 from majestrate/update-ngtcp2-2021-08-24
Update ngtcp2
2021-09-27 10:46:21 -03:00
Jason Rhinelander
d733e37d9f
Merge pull request #1750 from majestrate/ci-update-2021-09-24
update ci to use main lokinet mobile repo
2021-09-27 10:44:09 -03:00
Jeff Becker
7d299d1c74
update ci to use main lokinet mobile repo 2021-09-24 17:23:51 -04:00
Jeff Becker
9c37e0146e
make it compile again 2021-09-24 17:15:50 -04:00
Jeff Becker
ec83641ee8
update submodule 2021-09-24 16:51:03 -04:00
Jeff Becker
45b5fec314
make it compile again (squashme) 2021-09-24 16:51:03 -04:00
Jeff Becker
3c61af1de9
bump ngtcp2 submodule 2021-09-24 16:51:03 -04:00
Jeff
ed271de715
make lokinet-util library static
every other lokinet internal lib is static, but liblokinet-util was not, this fixes that.
2021-09-18 19:54:06 -04:00
Jeff
9f19a3653e
Merge pull request #1741 from majestrate/systemd-resolved-dns-fix-2021-09-16
SystemD DNS fix
2021-09-16 17:53:46 -04:00
Jeff Becker
d1246947f7
SystemD DNS fix:
when dns is port 53 call SetLinKDNS otherwise call SetLinkDNSEx as on older versions of systemd-resolved SetLinkDNSEx is not available.
2021-09-16 17:52:30 -04:00
Jeff
cf1086e4ac
Update readme.md 2021-09-14 17:29:36 -04:00
Jeff
2fbfeb1112
Update readme.md 2021-09-14 17:26:53 -04:00
Jeff
ad9bbe9290
Update readme.md 2021-09-14 17:23:49 -04:00
Jeff
3f57427bba
Update readme.md
more updates to readme, remove unmaintained parts, add and remove chunks of information.
2021-09-14 17:21:13 -04:00
Jeff
1e5f753dc9
Update readme.md
our readme sucks, make it suck a bit less
2021-09-14 17:16:37 -04:00
Jeff
2a5c601f90
Merge pull request #1738 from jagerman/fix-jemalloc-option-dupe
Remove duplicate handling of jemalloc
2021-09-14 09:16:41 -04:00
Jason Rhinelander
488ed47cda Remove duplicate handling of jemalloc
We were linking/loading it in different ways, one with cmake option
`USE_JELLOC` and the other, older version `WITH_JEMALLOC`.  This removes
the latter (which was default OFF) and keeps the former (which was added
and has been default ON since 0.9.4 or so).

Also removes the `ifdef`ed JEMALLOC code in lokinet.cpp because we don't
need it; just linking to jemalloc is enough to get the malloc/free
replacements.
2021-09-13 13:26:12 -03:00
Jeff
c30538a381
Update exit-setup.md
`hops=1` is not supported anymore.
2021-09-12 11:07:10 -04:00
Jeff
baa89771fb
Merge pull request #1735 from majestrate/cmake-lokinet-bootstrap-tweaks-2021-09-10
make lokinet-bootstrap target toggleable
2021-09-10 22:13:34 -04:00
Jason Rhinelander
62d7192a50 Add mainnet/testnet bootstrap files into repo
We use them everywhere now (include the debs) so it makes sense to have
them bundled here rather than needing a download during package build
(in particular for debs that's considered a bad thing).
2021-09-10 19:38:32 -03:00
Jason Rhinelander
8df5005f54
Apply suggestions from code review 2021-09-10 19:22:22 -03:00
Jeff
ff71e65ae0
Merge pull request #1736 from jagerman/ngtcp2-only-lib
Redo how we build ngtcp2 lib
2021-09-10 16:00:38 -04:00
Jason Rhinelander
089fc026d8 Redo how we build ngtcp2 lib
ngtcp2's top-level CMakeLists.txt is not friendly to being used as a
subdirectory (for instance, it always adds a `check` target when cunit
is installed), so stop using it in favour of skipping directly into the
ngtcp2/lib subdir.

This requires some hackery to set up a couple of the things the
top-level cmake does, but it isn't *too* painful.
2021-09-10 15:12:57 -03:00
Jeff Becker
7e1236503c
make lokinet-bootstrap target toggleable
add cmake option to disable building lokinet-bootstrap binary
2021-09-10 10:41:42 -04:00
Jason Rhinelander
dbea1f98e7
Merge pull request #1651 from majestrate/lokinet-bootstrap-help-messages-2021-05-18
add --help and -h flags to lokinet-bootstrap to show help message
2021-09-08 19:56:32 -03:00
Jason Rhinelander
6c3c523404 Update wording and wrap help message 2021-09-08 19:48:25 -03:00
Jason Rhinelander
0f8297a186 Bump dev branch version 2021-09-03 23:04:14 -03:00
Jason Rhinelander
1972cf3f27
Merge pull request #1723 from majestrate/rc-gossip-limiter-2021-08-30
limit RC gossip to 20 peers max
2021-09-03 22:56:59 -03:00
Jason Rhinelander
53b62857da Disable tests on static bionic
It's failing to link with LTO on bionic because of an internal compiler
error for some random reason, so just disable building the tests there
for now (keeping LTO on is more useful since that is also what gets used
for a static build).
2021-09-03 22:21:45 -03:00
Jeff Becker
9ad63140f2
use std::sample to grab MaxGossipPeers when populating std::unordered_set 2021-09-03 17:45:08 -04:00
Jeff Becker
a739e7b532
try not to prefer outbound vs inbound link sessions
before when we get the list of router ids for gossip it was highly bias towards outbound sessions.
instead now we get a full list of link session router ids in random order, truncate them to be at most MaxGossipPeers number of keys, and then put them into an unordered set
2021-09-03 17:45:08 -04:00
Jeff Becker
d91ce53da1
limit RC gossip to 20 peers max 2021-09-03 17:45:08 -04:00
Jason Rhinelander
41ba49a185
Merge pull request #1688 from majestrate/macos-network-extension-2021-05-14
Macos network extension port
2021-09-03 18:44:23 -03:00
Jeff Becker
344d0a2f2d
format 2021-09-03 15:21:08 -04:00
Jeff Becker
2ee43c2162
set ipv6 address on apple to hardcoded value 2021-09-03 15:17:46 -04:00
Jason Rhinelander
c52782ab32 Add IPv6 addr/routing for macos 2021-09-03 15:35:33 -03:00
Jeff Becker
b52cf97e11
override ShouldHandlePacket on android to bypass non .snode/.loki dns hooking. 2021-09-03 14:03:55 -04:00
Jason Rhinelander
7fe5ffb209 Fix IPv4 routes are disabling exit
(This was actually already working because macOS is buggy and doesn't
actually remove routes other than the default).
2021-09-03 12:06:27 -03:00
Jeff Becker
979488830e
remove unused import
lokinet.swift no longer touches internals of lokinet network extension so we remove the import for it
2021-09-03 07:49:29 -04:00
Jeff Becker
0d64de17c8
tmp commit for debugging (revert me) 2021-09-02 18:46:39 -04:00
Jeff Becker
82314a3cac
add comment about android dns 2021-09-02 18:36:38 -04:00
Jason Rhinelander
831cc23de1 Remove obsolete bigs
Removes stuff we didn't end up needing/using:
- Lokinet.modulemap
- apple bits from lokinet.cpp (we don't use lokinet.cpp at all on macos
  anymore).
- dnsproxy/extension C++ headers
- apple-specific network extension config in llarp::config::Config
2021-09-02 19:19:54 -03:00
Jason Rhinelander
12e00b7a99 Remove advertising of big crappy company 2021-09-02 19:14:33 -03:00
Jason Rhinelander
2b8ef416c3 Remove old mac installer packaging 2021-09-02 19:13:51 -03:00
Jason Rhinelander
92c7fb9872 LOKINET_VERSION -> built in lokinet_VERSION 2021-09-02 19:11:41 -03:00
Jason Rhinelander
38335f13a2 Remove debugging 2021-09-02 19:09:02 -03:00
Jason Rhinelander
8aef5d742d Re-enable LTO; target macos 10.12+ 2021-09-02 19:07:40 -03:00
Jeff Becker
10cd331863
invert logic for android dns hook 2021-09-02 15:23:13 -04:00