oxen-io / lokinet

Lokinet is an anonymous, decentralized and IP based overlay network for the internet.
https://lokinet.org/
GNU General Public License v3.0
1.72k stars 220 forks source link

lokinet-vpn does not work with ipc sockets + ipc by default #2057

Closed majestrate closed 1 year ago

majestrate commented 1 year ago

when lokinet uses an ipc socket and we have the ability to access it just fine

/usr/bin/lokinet-vpn --rpc ipc:///var/lib/lokinet/rpc.sock --down

prints std::bad_cast and exits with status 2, instead of calling the rpc endpoint it needed to.

jagerman commented 1 year ago

Additionally, we should make lokinet listen on the rpc.sock IPC socket by default.

dr7ana commented 1 year ago

I believe @majestrate original bug is fixed by the CLI refactor and subsequent logic fixes as documented below (pending reproduction by others). Assuming that's confirmed, can get started on @jagerman default IPC socket listening enhancement (Note: #2110 tracks this specific enhancement)

Reproduced Error

oxen/lokinet dev branch commit bf0dc52df7c05d4a14b5d5140615c1d547430055

Lokinet:

lokinet --config /home/dan/tmp/rpc.sock

Screenshot from 2023-01-09 15-17-15

Lokinet-vpn

Screenshot from 2023-01-09 15-17-11

Working Functionality

drouhana/lokinet cli-refactor branch commit 26beebca97d66a87d4cb8f5b67d44b242c0e7797

Note: oxen/lokinet dev branch latest commit includes the CLI refactor code in the above commit

Lokinet

(identical command as above) Screenshot from 2023-01-09 15-27-06

Lokinet-vpn

Screenshot from 2023-01-09 15-27-14