Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
91aa189e
Commit
91aa189e
authored
May 01, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Upnp bug
parent
e6a68f0c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
ethereum.go
ethereum.go
+1
-1
natupnp.go
natupnp.go
+4
-0
No files found.
ethereum.go
View file @
91aa189e
...
@@ -350,7 +350,7 @@ func (s *Ethereum) WaitForShutdown() {
...
@@ -350,7 +350,7 @@ func (s *Ethereum) WaitForShutdown() {
func
(
s
*
Ethereum
)
upnpUpdateThread
()
{
func
(
s
*
Ethereum
)
upnpUpdateThread
()
{
// Go off immediately to prevent code duplication, thereafter we renew
// Go off immediately to prevent code duplication, thereafter we renew
// lease every 15 minutes.
// lease every 15 minutes.
timer
:=
time
.
NewTimer
(
0
*
time
.
Second
)
timer
:=
time
.
NewTimer
(
5
*
time
.
Minute
)
lport
,
_
:=
strconv
.
ParseInt
(
s
.
Port
,
10
,
16
)
lport
,
_
:=
strconv
.
ParseInt
(
s
.
Port
,
10
,
16
)
first
:=
true
first
:=
true
out
:
out
:
...
...
natupnp.go
View file @
91aa189e
...
@@ -246,6 +246,10 @@ func soapRequest(url, function, message string) (r *http.Response, err error) {
...
@@ -246,6 +246,10 @@ func soapRequest(url, function, message string) (r *http.Response, err error) {
//fmt.Println(fullMessage)
//fmt.Println(fullMessage)
r
,
err
=
http
.
DefaultClient
.
Do
(
req
)
r
,
err
=
http
.
DefaultClient
.
Do
(
req
)
if
err
!=
nil
{
return
}
if
r
.
Body
!=
nil
{
if
r
.
Body
!=
nil
{
defer
r
.
Body
.
Close
()
defer
r
.
Body
.
Close
()
}
}
...
...
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