Fix: Save user-input RDP config to API instead of using hardcoded values

Problem:
- All-in-one installer collected RDP connection info from user
- But API was using hardcoded DEFAULT_CONFIG values
- User's input was ignored by the API

Solution:
- Save user's RDP configuration to /var/lib/rdp-toggle/config.json
- API loads this config instead of hardcoded defaults
- Config includes: rdp_server, rdp_username, rdp_password, local_user

Now the API will use the actual RDP settings the user entered during installation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude 2025-11-17 04:26:31 +00:00
parent d02883256f
commit 86eb7ea806

View File

@ -520,6 +520,18 @@ RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
# RDP 설정을 API에 저장
msg_info "RDP 설정 저장 중..."
mkdir -p /var/lib/rdp-toggle
cat > /var/lib/rdp-toggle/config.json << EOF
{
"rdp_server": "$RDP_SERVER",
"rdp_username": "$RDP_USERNAME",
"rdp_password": "$RDP_PASSWORD",
"local_user": "$LOCAL_USER"
}
EOF
# 서비스 활성화 및 시작