Skip to content

Commit 31a13a9

Browse files
committed
mini fixes
1 parent 3507751 commit 31a13a9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/wire_guard/server.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ def new_config(params)
2626
def all_configs
2727
return {} if configs_empty?
2828

29-
@configs.except('last_id')
29+
# TODO: Remove 'last_address' in future versions
30+
@configs.except('last_id', 'last_address')
3031
end
3132

3233
def config(id)

lib/wire_guard/server_config_updater.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ def update
2929
new_config_build = []
3030
new_config_build << base_config
3131

32-
json_config['configs'].except('last_id').each_value do |config|
32+
# TODO: Remove 'last_address' in future versions
33+
json_config['configs'].except('last_id', 'last_address').each_value do |config|
3334
# NOTE: We simply skip the config and do not add it to the initial configuration,
3435
# if the 'enable == false'
3536
next if config['enable'] == false

0 commit comments

Comments
 (0)