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
026656ef
Commit
026656ef
authored
Dec 29, 2017
by
Erick Hitter
Browse files
Simplify conditions
parent
7554f9f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
dyndnsd-client.go
View file @
026656ef
...
...
@@ -54,8 +54,7 @@ func main() {
}
// IPv4 is required
ipv4
,
err
:=
getUrl
(
ipv4Endpoint
)
if
err
==
nil
{
if
ipv4
,
err
:=
getUrl
(
ipv4Endpoint
);
err
==
nil
{
query
:=
endpoint
.
Query
()
query
.
Set
(
"myip"
,
ipv4
)
endpoint
.
RawQuery
=
query
.
Encode
()
...
...
@@ -66,8 +65,7 @@ func main() {
}
// IPv6 is optional
ipv6
,
err
:=
getUrl
(
ipv6Endpoint
)
if
err
==
nil
{
if
ipv6
,
err
:=
getUrl
(
ipv6Endpoint
);
err
==
nil
{
query
:=
endpoint
.
Query
()
query
.
Set
(
"myip6"
,
ipv6
)
endpoint
.
RawQuery
=
query
.
Encode
()
...
...
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