Skip to content

Commit 82d0589

Browse files
committed
fix: drop misleading localhost line from pairing output
t3 pair prints a 'Pairing with t3code (http://127.0.0.1:3773)' line that, under the access label, looked like a URL to open. Filter it out and reword the label so only the QR and LAN pairing URL are presented.
1 parent 9842db6 commit 82d0589

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

ct/t3code.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@ description
5757

5858
msg_ok "Completed Successfully!\n"
5959
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
60-
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
61-
pct exec "$CTID" -- env NODE_NO_WARNINGS=1 t3 pair --base-dir /opt/t3code_data --ttl 1h
60+
echo -e "${INFO}${YW}Pair a device using the QR code or URL below:${CL}"
61+
# t3 pair's first line reports the local connection (http://127.0.0.1:3773) which
62+
# is misleading here; drop it so only the QR and the LAN pairing URL are shown.
63+
pct exec "$CTID" -- env NODE_NO_WARNINGS=1 t3 pair --base-dir /opt/t3code_data --ttl 1h | grep -v "127.0.0.1"
6264
echo -e ""
6365
echo -e "${INFO}${YW}The pairing URL above expires after 1 hour. Generate a fresh one from the Proxmox host:${CL}"
6466
echo -e "${TAB}${BGN}pct exec ${CTID} -- t3 pair --base-dir /opt/t3code_data --ttl 1h${CL}"

0 commit comments

Comments
 (0)