Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
open-source
dyndnsd-client
Commits
c91dc6b3
Commit
c91dc6b3
authored
Aug 20, 2018
by
Erick Hitter
Browse files
More linting
parent
c406cdfe
Pipeline
#208
passed with stages
in 7 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
dyndnsd-client.go
View file @
c91dc6b3
...
...
@@ -57,15 +57,16 @@ func main() {
// IPv4 is required
if
ipv4
,
err
:=
getURL
(
ipv4Endpoint
);
err
==
nil
{
if
ipv4Valid
:=
net
.
ParseIP
(
ipv4
);
ipv4Valid
==
nil
{
ipv4Valid
:=
net
.
ParseIP
(
ipv4
)
if
ipv4Valid
==
nil
{
logger
.
Println
(
"Invalid IPv4 address returned by endpoint"
)
logger
.
Printf
(
"%s"
,
err
)
return
}
else
{
query
:=
endpoint
.
Query
()
query
.
Set
(
"myip"
,
ipv4Valid
.
String
())
endpoint
.
RawQuery
=
query
.
Encode
()
}
query
:=
endpoint
.
Query
()
query
.
Set
(
"myip"
,
ipv4Valid
.
String
())
endpoint
.
RawQuery
=
query
.
Encode
()
}
else
{
logger
.
Println
(
"Couldn't retrieve IPv4 address"
)
logger
.
Printf
(
"%s"
,
err
)
...
...
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