fix: VPN IP 확인 명령어 수정 (tailscale ip -4 사용)
문제:
- tailscale status --json으로 파싱 시도했으나 동작하지 않음
- VPN IP 할당 대기 중 10초 타임아웃 발생
해결:
- 기존 스크립트와 동일하게 'tailscale ip -4' 명령어 사용
- JSON 파싱 불필요, 직접 IPv4 주소 반환
테스트:
- tailscale ip -4 명령어로 즉시 IP 확인 가능
- 100.64.0.14 형식의 IP 정상 출력
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
7020339867
commit
9c9a25218e
@ -520,9 +520,9 @@ collect_pharmacy_info() {
|
||||
get_assigned_vpn_ip() {
|
||||
echo -e "${BLUE}VPN IP 확인 중...${NC}"
|
||||
|
||||
# tailscale status로 IP 추출 (최대 10초 대기)
|
||||
# tailscale ip -4로 IP 추출 (최대 10초 대기)
|
||||
for i in {1..10}; do
|
||||
VPN_IP=$(tailscale status --json 2>/dev/null | grep -oP '"TailscaleIPs":\["\K[^"]+' | head -1)
|
||||
VPN_IP=$(tailscale ip -4 2>/dev/null)
|
||||
|
||||
if [ -n "$VPN_IP" ]; then
|
||||
echo -e "${GREEN}✓ VPN IP: $VPN_IP${NC}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user