Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

save port and paylaod_signature to files #91

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

StudioEtrange
Copy link

The purpose is like for saving token in a file :
by saving payload and signature and port
we can use these values outside of these scripts

Need that at least for port because the only way to get the port is to read terminal,
not easily usable in a lot of way
and store port and payload_signature in files do not broke actual usage I think

Thanx !

port_forwarding.sh Outdated Show resolved Hide resolved
@jswclw
Copy link

jswclw commented Jan 21, 2022

Been running with this (manually) merged for nearly a year now. Provides a critical piece of functionality. Would really like to see it merged!

@g00nix
Copy link
Contributor

g00nix commented Jan 21, 2022

Been running with this (manually) merged for nearly a year now. Provides a critical piece of functionality. Would really like to see it merged!

Thank you for the confirmation. I think the idea is good and we should merge. However we could improve the structure a bit:

  • structure everything under the same directory: /opt/piavpn-manual/port_forwarding
  • name files as follows:
    • /opt/piavpn-manual/port_forwarding/payload_and_signature
    • /opt/piavpn-manual/port_forwarding/port
    • /opt/piavpn-manual/port_forwarding/expires_at

Please confirm this is acceptable. If yes, we can modify the merge request with the new data, test again and merge.

@jswclw
Copy link

jswclw commented Jan 23, 2022 via email

@StudioEtrange
Copy link
Author

any news on this PR ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants