Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
destream-blockchain
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
destream-blockchain
Commits
a309dcac
Commit
a309dcac
authored
Feb 20, 2019
by
Sergei Zubov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify allowed IP for RPC server
0.0.0.0 or ::1 allows everyone to connect
parent
2486507a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
RPCAuthorization.cs
Sources/Stratis.Bitcoin.Features.RPC/RPCAuthorization.cs
+4
-0
No files found.
Sources/Stratis.Bitcoin.Features.RPC/RPCAuthorization.cs
View file @
a309dcac
...
...
@@ -42,6 +42,10 @@ namespace Stratis.Bitcoin.Features.RPC
if
(
this
.
AllowIp
.
Count
==
0
)
return
true
;
if
(
this
.
AllowIp
.
Any
(
i
=>
i
.
Equals
(
IPAddress
.
Any
)
||
i
.
Equals
(
IPAddress
.
IPv6Any
)))
return
true
;
return
this
.
AllowIp
.
Any
(
i
=>
i
.
AddressFamily
==
ip
.
AddressFamily
&&
i
.
Equals
(
ip
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment