Skip to content

Commit

Permalink
v0.1.2 backwards compatilibity for server
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnyhyman committed May 21, 2021
1 parent d1820e4 commit a051d42
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified rmc/.DS_Store
Binary file not shown.
6 changes: 6 additions & 0 deletions rmc/rmc_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ def __init__(self, app, parent=None):

# Tunnel configured? (Requires server to be configured)
if 'wireguard' in self.config.config:

# Backwards compatibility, v0.1.2 onwards
if 'only' not in self.config['wireguard'].keys():
self.config['wireguard']['only'] = self.wg_only
self.config.save()

self.b_auth.setEnabled(True)
self.b_tunn.setEnabled(True)
self.wg_port = self.config['wireguard']['port']
Expand Down

0 comments on commit a051d42

Please sign in to comment.