@@ -9,18 +9,18 @@ import (
99)
1010
1111func Test_MakeHTTPSUserdata_OneDomain (t * testing.T ) {
12- got := MakeHTTPSUserdata (
"token" ,
"0.9.25 " ,
"[email protected] " ,
"prod" , []
string {
"example.com" })
12+ got := MakeHTTPSUserdata (
"token" ,
"0.9.40 " ,
"[email protected] " ,
"prod" , []
string {
"example.com" })
1313
1414 os .WriteFile ("/tmp/t.txt" , []byte (got ), 0600 )
1515 want := `#!/bin/bash
1616export AUTHTOKEN="token"
1717export IP=$(curl -sfSL https://checkip.amazonaws.com)
1818
19- curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.9.25 /inlets-pro -o /tmp/inlets-pro && \
19+ curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.9.40 /inlets-pro -o /tmp/inlets-pro && \
2020 chmod +x /tmp/inlets-pro && \
2121 mv /tmp/inlets-pro /usr/local/bin/inlets-pro
2222
23- curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.9.25 /inlets-pro-http.service -o inlets-pro.service && \
23+ curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.9.40 /inlets-pro-http.service -o inlets-pro.service && \
2424 mv inlets-pro.service /etc/systemd/system/inlets-pro.service && \
2525 echo "AUTHTOKEN=$AUTHTOKEN" >> /etc/default/inlets-pro && \
2626 echo "IP=$IP" >> /etc/default/inlets-pro && \
@@ -37,19 +37,19 @@ curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.9.25/inlets-
3737}
3838
3939func Test_MakeHTTPSUserdata_TwoDomains (t * testing.T ) {
40- got := MakeHTTPSUserdata (
"token" ,
"0.9.25 " ,
"[email protected] " ,
"prod" ,
40+ got := MakeHTTPSUserdata (
"token" ,
"0.9.40 " ,
"[email protected] " ,
"prod" ,
4141 []string {"a.example.com" , "b.example.com" })
4242
4343 os .WriteFile ("/tmp/t.txt" , []byte (got ), 0600 )
4444 want := `#!/bin/bash
4545export AUTHTOKEN="token"
4646export IP=$(curl -sfSL https://checkip.amazonaws.com)
4747
48- curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.9.25 /inlets-pro -o /tmp/inlets-pro && \
48+ curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.9.40 /inlets-pro -o /tmp/inlets-pro && \
4949 chmod +x /tmp/inlets-pro && \
5050 mv /tmp/inlets-pro /usr/local/bin/inlets-pro
5151
52- curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.9.25 /inlets-pro-http.service -o inlets-pro.service && \
52+ curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.9.40 /inlets-pro-http.service -o inlets-pro.service && \
5353 mv inlets-pro.service /etc/systemd/system/inlets-pro.service && \
5454 echo "AUTHTOKEN=$AUTHTOKEN" >> /etc/default/inlets-pro && \
5555 echo "IP=$IP" >> /etc/default/inlets-pro && \
0 commit comments