Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
50278674
Unverified
Commit
50278674
authored
Nov 26, 2018
by
neil
Committed by
GitHub
Nov 26, 2018
Browse files
Merge pull request #1934 from epgdatacapbon/master
Increase security using https for MyDNS.JP API
parents
ca9476f7
be5085f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_mydnsjp.sh
100644 → 100755
View file @
50278674
...
...
@@ -15,7 +15,7 @@
# MYDNSJP_MasterID=MasterID
# MYDNSJP_Password=Password
MYDNSJP_API
=
"http://www.mydns.jp"
MYDNSJP_API
=
"http
s
://www.mydns.jp"
#Usage: dns_mydnsjp_add _acme-challenge.www.domain.com "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs"
dns_mydnsjp_add
()
{
...
...
@@ -151,7 +151,7 @@ _mydnsjp_retrieve_domain() {
_debug
"Login to MyDNS.JP"
response
=
"
$(
_post
"masterid=
$MYDNSJP_MasterID
&masterpwd=
$MYDNSJP_Password
"
"
$MYDNSJP_API
/?MENU=100"
)
"
cookie
=
"
$(
grep
'^
S
et-
C
ookie:'
"
$HTTP_HEADER
"
| _head_n 1 |
cut
-d
" "
-f
2
)
"
cookie
=
"
$(
grep
-i
'^
s
et-
c
ookie:'
"
$HTTP_HEADER
"
| _head_n 1 |
cut
-d
" "
-f
2
)
"
# If cookies is not empty then logon successful
if
[
-z
"
$cookie
"
]
;
then
...
...
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