gjedeer / tuntox

Tunnel TCP connections over the Tox protocol
https://gdr.name/tuntox/
Other
343 stars 57 forks source link

Default configuration file #31

Open cjeanneret opened 7 years ago

cjeanneret commented 7 years ago

Hello,

The default configuration file shouldn't be in a location default user can't write. You should:

All of that by default, else people just won't use it because it requires arguments for nothing — in addition, doing as proposed above meets the current usage for many other apps.

Cheers,

C.

gjedeer commented 7 years ago

I kind of like that the client mode ToxIDs are ephemeral by default, it was by design.

Server mode is where storing the configuration is needed, but there are 2 use cases: 1) Ephemeral server ran from command line, in which case you don't even need to write the config 2) Server ran by init on startup, in which case you want it to use /etc like every other program, not ~/.config.

I saw someone packaged it for Arch and Ubuntu and I think packagers are who should worry about creating a new user account for tuntox and /etc/tuntox owned by that user.

Maybe I'm missing some important use case here, so your comments are welcome.