-
-
Notifications
You must be signed in to change notification settings - Fork 0
Add IP address support with dclogin scheme to cmping #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@copilot look at the definition of dclogin in https://github.com/deltachat/interface and modify cmping.py to accept an IP address instead of a relay domain name. When an IP address is specified, use a 12 character long local name consisting of "a-z" and "0-9" characters. call the set_config_from_qr code with a "dclogin:" scheme like in this example: dclogin:lbcwz3c54s9n@172.238.97.168/?p=77d8rr624dkkxjedvv4g91i3&v=1&ip=993&sp=465&ic=3&ss=default |
Co-authored-by: hpk42 <73579+hpk42@users.noreply.github.com>
Co-authored-by: hpk42 <73579+hpk42@users.noreply.github.com>
Done! I've updated cmping.py to accept IP addresses and use the dclogin scheme as specified. Key changes in commit a041f8b:
The implementation follows the dclogin specification from deltachat/interface and maintains backward compatibility with domain-based configuration. |
|
@copilot move _is_ip_address out of the class into a single function |
Co-authored-by: hpk42 <73579+hpk42@users.noreply.github.com>
|
@copilot simplify get_relay_account. refactor the common code like "for account in self.get_all_accounts" loop into a function and call it from both the "is ip_address" and "is not ip_address" branches |
Co-authored-by: hpk42 <73579+hpk42@users.noreply.github.com>
Done in commit 18ba56a. Simplified |
|
@copilot merge _generate_username and _generate_password into a single _generate_credentials function |
Co-authored-by: hpk42 <73579+hpk42@users.noreply.github.com>
Co-authored-by: hpk42 <73579+hpk42@users.noreply.github.com>
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.