lemonade-command / lemonade

Lemonade is a remote utility tool. (copy, paste and open browser) over TCP.
MIT License
624 stars 54 forks source link

Use the value of $SSH_CLIENT #40

Open danielcherubini opened 2 years ago

danielcherubini commented 2 years ago

Hi,

Great package, one thing I think you could do, which would make it work without configuration, is to use the $SSH_CLIENT environment variable, if it's populated, then get the IP address from there, otherwise use the rest of your logic.

OR

use what's in the config, then if that's empty use the SSH_CLIENT env

thoughts?

marco-gallegos commented 1 year ago

this sounds very cool

vaqxai commented 4 days ago

yes please, i was just meaning to ask about that functionality. we can't put an env var in the toml config file