From 33ed8c138de076201163f44c08c57561ad0e8ced Mon Sep 17 00:00:00 2001 From: librelois <elois@ifee.fr> Date: Sun, 29 Oct 2017 18:37:33 +0100 Subject: [PATCH] add proxyConf --- app/lib/dto/ConfDTO.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/lib/dto/ConfDTO.ts b/app/lib/dto/ConfDTO.ts index 361eb49c9..cdedf5037 100644 --- a/app/lib/dto/ConfDTO.ts +++ b/app/lib/dto/ConfDTO.ts @@ -1,4 +1,5 @@ import {CommonConstants} from "../common-libs/constants" +import { Proxy, ProxyConf } from '../proxy'; const _ = require('underscore'); const constants = require('../constants'); @@ -46,6 +47,7 @@ export interface KeypairConfDTO { } export interface NetworkConfDTO { + proxyConf: ProxyConf|undefined nobma: boolean remoteport: number remotehost: string|null @@ -134,6 +136,7 @@ export class ConfDTO implements CurrencyConfDTO, KeypairConfDTO, NetworkConfDTO, public homename: string, public memory: boolean, public nobma: boolean, + public proxyConf: ProxyConf|undefined, public ws2p?: { privateAccess: boolean publicAccess: boolean @@ -152,7 +155,7 @@ export class ConfDTO implements CurrencyConfDTO, KeypairConfDTO, NetworkConfDTO, ) {} static mock() { - return new ConfDTO("", "", [], [], 0, 0, 0.6, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, false, 0, false, 0, 0, 0, 0, 0, { pub:'', sec:'' }, null, "", "", 0, "", "", "", 0, "", "", null, false, "", true, true) + return new ConfDTO("", "", [], [], 0, 0, 0.6, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, false, 0, false, 0, 0, 0, 0, 0, { pub:'', sec:'' }, null, "", "", 0, "", "", "", 0, "", "", null, false, "", true, true, undefined) } static defaultConf() { -- GitLab