Skip to content

Implement local address configuration for multi-interface support - #223

Merged
AmarnathCJD merged 1 commit into
AmarnathCJD:masterfrom
vlw:master
Aug 22, 2025
Merged

Implement local address configuration for multi-interface support#223
AmarnathCJD merged 1 commit into
AmarnathCJD:masterfrom
vlw:master

Conversation

@vlw

@vlw vlw commented Aug 11, 2025

Copy link
Copy Markdown
Contributor

This feature allows binding Telegram client connections to specific local network interfaces or IP addresses. This is particularly useful for:

  • Running multiple Telegram accounts from different IP addresses on the same server to avoid rate limiting and account associations
  • Ensuring specific accounts use specific network routes for compliance or security requirements

The implementation adds a LocalAddr field to ClientConfig that accepts standard address formats like "192.168.1.100:0" or ":8888". If not specified, the system automatically selects the interface as before, maintaining backward compatibility.

This feature allows binding Telegram client connections to specific local
network interfaces or IP addresses. This is particularly useful for:

- Running multiple Telegram accounts from different IP addresses on the
 same server to avoid rate limiting and account associations
- Ensuring specific accounts use specific network routes for compliance
 or security requirements

The implementation adds a LocalAddr field to ClientConfig that accepts
standard address formats like "192.168.1.100:0" or ":8888". If not
specified, the system automatically selects the interface as before,
maintaining backward compatibility.

Signed-off-by: vlw <vlwwwwww@gmail.com>
@AmarnathCJD
AmarnathCJD merged commit e08b41e into AmarnathCJD:master Aug 22, 2025
1 of 2 checks passed
bunin pushed a commit to bunin/gogram that referenced this pull request Mar 6, 2026
Implement local address configuration for multi-interface support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants