Conversation
|
|
|
The --relay-server-port flag itself is defined in: Specifically: Later in the same file, non-empty values get parsed an assigned: This would change the default expected behaviour of Tailscale:
@fichtner unless I am wrong shouldn't be a required field, should be empty by default, allowed values 0-65535? Template logic would also need adjusting, and if supported flag for tailscale up args. |
|
@sheridans I think the link you mean is https://github.com/tailscale/tailscale/raw/refs/heads/main/cmd/tailscale/cli/set.go You're right the value can't be 0 for disabling it needs to be unset. For the implementation to work, the plugin would need to support I'm not sure how to do this, is there a reference plugin I can take a look at? |
|
If you you do it manually via the command line does the plugin still work and does the setting persist? Up args handling is a bit wierd, if they changed and tailscale was restarted without the same up args as previously it threw an error and wouldn't start. |
|
No, master branch os-tailscale doesn't persist |
This PR adds peer relay option to os-tailscale.
Creates a field for peer relay port, if 0 peer relay is disabled.
Related: #5122