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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
typescript
duniter
Commits
8de6f28a
Commit
8de6f28a
authored
Mar 24, 2016
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
Add --webmhost and --webmport options
parent
189e7266
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/ucoind
+5
-1
5 additions, 1 deletion
bin/ucoind
index.js
+3
-3
3 additions, 3 deletions
index.js
with
8 additions
and
4 deletions
bin/ucoind
+
5
−
1
View file @
8de6f28a
...
...
@@ -50,6 +50,10 @@ program
.
option
(
'
--upnp
'
,
'
Use UPnP to open remote port
'
)
.
option
(
'
--noupnp
'
,
'
Do not use UPnP to open remote port
'
)
// Webmin options
.
option
(
'
--webmhost <host>
'
,
'
Local network interface to connect to (IP)
'
)
.
option
(
'
--webmport <port>
'
,
'
Local network port to connect
'
,
parseInt
)
.
option
(
'
--salt <salt>
'
,
'
Key salt to generate this key
\'
s secret key
'
)
.
option
(
'
--passwd <password>
'
,
'
Password to generate this key
\'
s secret key
'
)
.
option
(
'
--participate <Y|N>
'
,
'
Participate to writing the blockchain
'
)
...
...
@@ -798,7 +802,7 @@ function webStart() {
// Add log files for this instance
logger
.
addHomeLogs
(
params
.
home
);
}
let
webminapi
=
yield
ucoin
.
statics
.
enableHttpAdmin
({
home
:
dbHome
,
name
:
dbName
,
memory
:
program
.
memory
},
commandLineConf
(),
false
);
let
webminapi
=
yield
ucoin
.
statics
.
enableHttpAdmin
({
home
:
dbHome
,
name
:
dbName
,
memory
:
program
.
memory
},
commandLineConf
(),
false
,
program
.
webmhost
,
program
.
webmport
);
return
webminapi
.
openConnections
();
});
...
...
This diff is collapsed.
Click to expand it.
index.js
+
3
−
3
View file @
8de6f28a
...
...
@@ -14,9 +14,9 @@ module.exports = function (dbConf, overConf) {
module
.
exports
.
statics
=
{
enableHttpAdmin
:
(
dbConf
,
overConf
,
httpLogs
)
=>
webmin
(
dbConf
,
overConf
,
[{
ip
:
'
localhost
'
,
port
:
9220
enableHttpAdmin
:
(
dbConf
,
overConf
,
httpLogs
,
wmHost
,
wmPort
)
=>
webmin
(
dbConf
,
overConf
,
[{
ip
:
wmHost
||
'
localhost
'
,
port
:
wmPort
||
9220
}],
httpLogs
!==
false
),
startNode
:
(
server
,
conf
)
=>
co
(
function
*
()
{
...
...
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
sign in
to comment