Skip to content

Conversation

@PRESFIL
Copy link
Contributor

@PRESFIL PRESFIL commented Nov 17, 2025

Description

  • Fix error, when Protocol in config ignored even when Protocol no specified in command line

  • Don't recreate config file if it doesn't exists
    No need to recreate file, which should be created manually.

  • Don't error if default config doesn't exists, only make error if config specified as command line argument

  • Small docs fix

Even when Protocol no specified in command line.

Steps to reproduce:

1. echo 'protocol = "Wireguard"' > ~/.config/vopono/config.toml
2. vopono -v exec --provider None bash

Result

 Error: None protocol must use None provider - will run not run any VPN service inside netns
No need to recreate file, which should be created manually.

Calling with the --vopono-config option also caused the creation of a
new config, but the owner and group of the file were root.

In the end, this also this breaks this workflow:

1. Rename config.toml -> config.toml.bak
2. Rerun vopono
3. Revert renaming

New behavior - empty config builder used if config file doesn't exists,
without empty file creation.
@jamesmcm
Copy link
Owner

Thanks!

@jamesmcm jamesmcm merged commit a6d135a into jamesmcm:master Nov 17, 2025
1 of 2 checks passed
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.

2 participants