Skip to content

Commit ab8a750

Browse files
committed
test: 再次确认秘钥
1 parent 739fdac commit ab8a750

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/npm-gulp.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ jobs:
1515

1616
- run: echo "${{ secrets.WIREGUARD_PRIVATE_KEY }}" > privatekey
1717

18-
# - run: sudo cat privatekey
18+
- run: sudo cat privatekey
1919

2020
# - run: wg pubkey < privatekey
2121

2222
- run: sudo ip link add dev wg0 type wireguard
2323

24-
- run: sudo ip address add dev wg0 10.0.0.2/32
24+
- run: sudo ip address add dev wg0 10.0.0.2/24
2525

26-
- run: sudo wg set wg0 listen-port 51820 private-key privatekey peer V4pm4yPzVu7eaTiI6eBVaPBYovfYDQkwrK8YGSVSgSI= allowed-ips 10.0.0.1/32 endpoint 192.168.2.53:51820
26+
- run: sudo wg set wg0 listen-port 51820 private-key privatekey peer V4pm4yPzVu7eaTiI6eBVaPBYovfYDQkwrK8YGSVSgSI= allowed-ips 10.0.0.1/24 endpoint 192.168.2.53:51820
2727

2828
- run: sudo ip link set up dev wg0
2929

0 commit comments

Comments
 (0)