@@ -9,18 +9,18 @@ import (
9
9
)
10
10
11
11
func Test_MakeHTTPSUserdata_OneDomain (t * testing.T ) {
12
- got := MakeHTTPSUserdata ("token" , "0.9.25 " , "contact@example.com" , "prod" , []string {"example.com" })
12
+ got := MakeHTTPSUserdata ("token" , "0.9.40 " , "contact@example.com" , "prod" , []string {"example.com" })
13
13
14
14
os .WriteFile ("/tmp/t.txt" , []byte (got ), 0600 )
15
15
want := `#!/bin/bash
16
16
export AUTHTOKEN="token"
17
17
export IP=$(curl -sfSL https://checkip.amazonaws.com)
18
18
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 && \
20
20
chmod +x /tmp/inlets-pro && \
21
21
mv /tmp/inlets-pro /usr/local/bin/inlets-pro
22
22
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 && \
24
24
mv inlets-pro.service /etc/systemd/system/inlets-pro.service && \
25
25
echo "AUTHTOKEN=$AUTHTOKEN" >> /etc/default/inlets-pro && \
26
26
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-
37
37
}
38
38
39
39
func Test_MakeHTTPSUserdata_TwoDomains (t * testing.T ) {
40
- got := MakeHTTPSUserdata ("token" , "0.9.25 " , "contact@example.com" , "prod" ,
40
+ got := MakeHTTPSUserdata ("token" , "0.9.40 " , "contact@example.com" , "prod" ,
41
41
[]string {"a.example.com" , "b.example.com" })
42
42
43
43
os .WriteFile ("/tmp/t.txt" , []byte (got ), 0600 )
44
44
want := `#!/bin/bash
45
45
export AUTHTOKEN="token"
46
46
export IP=$(curl -sfSL https://checkip.amazonaws.com)
47
47
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 && \
49
49
chmod +x /tmp/inlets-pro && \
50
50
mv /tmp/inlets-pro /usr/local/bin/inlets-pro
51
51
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 && \
53
53
mv inlets-pro.service /etc/systemd/system/inlets-pro.service && \
54
54
echo "AUTHTOKEN=$AUTHTOKEN" >> /etc/default/inlets-pro && \
55
55
echo "IP=$IP" >> /etc/default/inlets-pro && \
0 commit comments