forked from p15670423/monkey
UI: Reformat advanced.keep_tunnel_open_time
This commit is contained in:
parent
4f4bba23cf
commit
6d372485fc
|
@ -3,9 +3,13 @@ import _ from 'lodash';
|
||||||
|
|
||||||
export function reformatConfig(config, reverse = false) {
|
export function reformatConfig(config, reverse = false) {
|
||||||
if (reverse) {
|
if (reverse) {
|
||||||
config['payloads'] = [{'name': 'ransomware', 'options': config['payloads']}]
|
config['payloads'] = [{'name': 'ransomware', 'options': config['payloads']}];
|
||||||
|
config['keep_tunnel_open_time'] = config['advanced']['keep_tunnel_open_time'];
|
||||||
|
delete config['advanced'];
|
||||||
} else {
|
} else {
|
||||||
config['payloads'] = config['payloads'][0]['options'];
|
config['payloads'] = config['payloads'][0]['options'];
|
||||||
|
config['advanced'] = {};
|
||||||
|
config['advanced']['keep_tunnel_open_time'] = config['keep_tunnel_open_time'];
|
||||||
}
|
}
|
||||||
return config;
|
return config;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue