Commit Graph

6519 Commits (def47f5c2758d0c8c8489c41c69d2529c84440dd)
 

Author SHA1 Message Date
Jason Rhinelander def47f5c27 Add lokinet-vpn binary, disable shared libs 4 years ago
Jason Rhinelander 2f31fbd3fd Try submodules --depth=1 4 years ago
Jason Rhinelander 5fdbdde7b0 Don't build tests 4 years ago
Jason Rhinelander 8448f15a4c Add libssl-dev build dep 4 years ago
Jason Rhinelander 799bd4f60b Fork sid -> buster deb 4 years ago
Jason Rhinelander a59ab55758 DRY 4 years ago
Jason Rhinelander 0c921f0ce9 Disable tests in deb builds 4 years ago
Jason Rhinelander 58d8aed0b8 Enable other arches 4 years ago
Jason Rhinelander a6be832155 Merge remote-tracking branch 'origin/dev' into deb08 4 years ago
Jeff Becker 7a18d14fde make it compile 4 years ago
Jason Rhinelander 658665c3c2 Allow binary 4 years ago
Jason Rhinelander 43a9e18a8b de-https so we don't need ca-certificates 4 years ago
Jason Rhinelander 32867e5736 Dearmor gpg; 1 apt-get update; no explicit g++; no ccache reconf 4 years ago
Jason Rhinelander f2fd003eb2 Don't install recommended packages 4 years ago
Jason Rhinelander 488673f460 Add gpg public key
This avoids the need to install curl+ca-certificates+gpg, and
additionally avoids the deprecated apt-key use to install the key.
4 years ago
Jeff a9d23d3ac3
use absolute path for route command (#1354)
* ignore tun interfaces on windows for mitigating foot cannons

* add flag for git add -p when using format verifier as git hook

* use explicit path for route command on windows

* fix typo

* fix typo

* remove hunk for win32 route exclusion based off being a tun interface

* add metric to win32 route command

* * refactor win32 route poking to use a common function for iterating over routes

* put interface in route poking for default route

* mnake it compile

* use correct route command on windows

* use fs::path for service::Identity::EnsureKeys
4 years ago
Jeff 11ed8924c6
use fs::path for service::Identity::EnsureKeys (#1364) 4 years ago
Jason Rhinelander 5362f585b5 ccache debug 4 years ago
Jason Rhinelander bdbe28ed22 Fix ninja check pwd 4 years ago
Jason Rhinelander e0720fb490 Don't prepend /usr/lib/ccache
lokinet finds ccache on its own
4 years ago
Jason Rhinelander 4a7cddb8da Add proper overridden test target 4 years ago
Jason Rhinelander 2febc50977 More missing deps 4 years ago
Jason Rhinelander 21d225f37a Added nettle-dev, apparently needed for libunbound-dev 4 years ago
Jason Rhinelander e81f413bc3 Update deb deps 4 years ago
Jason Rhinelander c3cd861e01 Disable setcap via new cmake variable 4 years ago
Jason Rhinelander e1d67872c4 Refresh patches 4 years ago
Jason Rhinelander d03066ee05
Support [dns] no-resolvconf option (ignored by lokinet) for deb compatibility (#1362)
* Add ignored [dns]no-resolvconf option for deb backwards compat

The debs hack a `#no-resolvconf=1` into the config file in 0.7 to allow
a user to disable resolvconf setup during startup by uncommenting it.
That doesn't work anymore since 0.8 errors on invalid config options, so
add it as an ignored option so that 0.7 deb config files can still be
compatible.

* Fix `[dns]upstream` comment not being produced in generated conf file

* fix test

Co-authored-by: Jeff <jeff@i2p.rocks>
4 years ago
Jason Rhinelander 63a876cc78
Allow -DWITH_SETCAP=OFF to disable setcap during make install (#1363)
The debs don't want it (and so this will save needing to patch it out),
nor do you need it if running via a systemd service file that sets the
capabilities.
4 years ago
Jason Rhinelander bbfbc1c1e7
Drone CI job shuffling (#1359)
- Disable bionic arm64 job to reduce the load on the ARM box a bit.
- Add bionic amd64 build so that we have a (normal) build on bionic.
- Remove sid/g++-10 job because g++ is now the default on sid (so the
  debian/sid build is already doing the same thing).
4 years ago
Jason Rhinelander a96bc1b9ac lokinet dev build 4 years ago
Jeff c91e4df856
make errors with service keyfile throw (#1358) 4 years ago
Jeff fe30193a97
revive android build system (#1339)
* it lives?

* clean up

* add readme and add x86_64 to abi filters

* disable route poking on android

* make it compile on android

* it compiles!!111

* typofix

* re-enable ccache for android
4 years ago
Jeff ef794bbd11
move pkgconfig requirement (#1355) 4 years ago
Jason Rhinelander 0d8c4d9211 Merge remote-tracking branch 'origin/dev' into debian/sid 4 years ago
Jason Rhinelander d90c1390fa
Merge pull request #1351 from majestrate/wire-up-lns-2020-09-19
client side lns fixes
4 years ago
Jeff 75ef28531e allow lns subdomains 4 years ago
Jeff a035dbdb9a enable peer stats by default 4 years ago
Jeff 686b13b2f3 fix up cmake lokimq target 4 years ago
Jeff 78b40d6725 wire up lns gotnamemessage handler to kitchen sink 4 years ago
Ryan Tharp 5d43a804d1
Update requirements and other README.md clean up (#1343)
* Update requirements and other clean up

git is now required due to submodules
libcurl/libcap: not sure if the minimum version is correct, The number I used is based on the bionic package version
add recursive option to all cloning
other tweaks to make concise and  precise

* Remove libcurl

* Add nproc back

* add libcurl back for windows

* Remove libcurl from WIndows

as lokinet-bootstrap.exe is just curl.exe now and will be removed soon
4 years ago
Rick V 7136f77c2e
allow running lokinet as root on windows (#1347)
* - allow running lokinet as root on windows
  ($PROGRAMDATA/.lokinet/lokinet.ini)
- oops forgot to eat my own command line args

* cursed windows

* now that we eat our own startup options the entry in cxxopts is fully
ded

* aha our command line options get smashed up

* revert plus DRY fix
4 years ago
Jeff 21930cf667
LNS (#1342)
* initial relay side lns

* fix typo

* add reserved names and refactor test for dns

* lns name decryption

* all wired up (allegedly)

* refact to use service::EncryptedName for LNS responses to include nonce with ciphertext

* fully rwemove tag_lookup_job

* replace lns cache with DecayingHashTable

* check for lns name validity against the following rules:

* not localhost.loki, loki.loki, or snode.loki

* if it contains no dash then max 32 characters long, not including the .loki tld (and also assuming a leading subdomain has been stripped)

* These are from general DNS requirements, and also enforced in
registrations:

* Must be all [A-Za-z0-9-]. (A-Z will be lower-cased by the RPC call).

* cannot start or end with a -

* max 63 characters long if it does contain a dash

* cannot contain -- in the third and fourth characters unless it starts with xn--

* handle timeout in name lookup job by calling the right handler with std::nullopt
4 years ago
Jason Rhinelander f5e5066bd5
Update deps (#1348)
* Update submodules/static deps to latest versions

* Add mingw zmq build patch

* Drop support for Windows 2000
4 years ago
Jeff c64c9093f2
make endpoints reachable by default (#1344) 4 years ago
Jeff dfd8df5e7f
add uninstall target (#1340)
* add uninstall target

* * redo cmake uninstall
* remove lokinet-vpn python script
* don't install lokinet-vpn twice
4 years ago
Jeff 854ce48e1c
remove gitlab ci as it is unused (#1341) 4 years ago
Jeff 681459185f
remove locks (#1336)
* remove locks

* use tryPushBack to attempt to prevent deadlocks
4 years ago
cathugger 838d28c6ed
contrib: NetworkManager dnsmasq config (#1335) 4 years ago
cathugger 412821ed77
contrib: systemd-resolved config (#1334) 4 years ago
Jeff 3ab7db7723
macos route poking (#1333)
* fix up macos route poker logic

* fix typo

* use string_view

* add forgotten header

* full paths

* add debugging

* catch exception on adding route

* workarround for macos

* typofix

* typofix

* fix for macos

* fix command for macos

* because we autopoke remove explicit route poking in rpc

* probably final fix of macos route poking

* split routes instead of deleting them

* dynamic route poking

* move log statement for introset lookup and dont consider bad sessions as able to send

* send convotag reset frame when we have no session

* add exit map to rpc

* use split_any
4 years ago