Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
typescript
duniter
Commits
33ed8c13
Commit
33ed8c13
authored
7 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
add proxyConf
parent
ffa0156e
No related branches found
No related tags found
1 merge request
!1178
Add WS2PTOR features
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/lib/dto/ConfDTO.ts
+4
-1
4 additions, 1 deletion
app/lib/dto/ConfDTO.ts
with
4 additions
and
1 deletion
app/lib/dto/ConfDTO.ts
+
4
−
1
View file @
33ed8c13
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
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment