Unknown opened 5 years ago
|
|
Why you do not use DNS SRV records? That would solve your issue. I'm reluctant to add this feature as we try to make the UX as simple as possible and those additional fields are not helping with achieving that goal. |
|
This is both a good question and a good tip, I will check it out, thanks!
I can understand your point of view and reluctance to add more options, and, it is totally Ok design goal to make. However, for completeness sake and as a thought experiment, the DNS SRV workaround cannot be applied to simple IP addresses or to (most?) dynamic DNS records. For these special and minority cases, would you think if it was feasible (without breaking the internal parts) to add port number to Tigase-Swift/jid/BareJID implementation? I am not familiar enough with ios/swift programming, and I just quickly see the sources that it was used in quite many places so I worry too many things will break if it is modified. I was thinking this would involve "only" the following tasks, but perhaps you can do better approximation on what it would actually require:
Anyway, thank you for your time, and keep up the good work with the program! I think it is always nice to see and use an open source solution over the so many proprietary ones out there. |
|
This is not a "workaround" - it's intended and most recommended way to configure your XMPP server. One could argue, that anything else is a workaround. See https://wiki.xmpp.org/web/SRV_Records
You shouldn't use an IP address to identify your server.
This one may be correct, but why not get the cheapest of the domains and point it's SRV addresses to your dynamic DNS records? That is.
You add SRV records to the first one and point to the second:
Setting port manually is really prone to errors and mistakes, and server operator has no control or way to inform it's users if there is a need to change the port. If you use SRV entries then you simply update DNS. |
|
@woj-tek Many thanks for your explanation and examples, very informative. In light of your recent comments, I believe this issue can be considered a non-issue, and can therefore be closed. |
Would it be possible to add a customizable server port option to "Add account" and/or "Change account settings" dialogs to facilitate connections to servers running on non-standard ports?
The tigase-swift library already supports it, but there just is no UI setting for it. I tried to add such setting a few years ago when I decided to use tigase-messenger/siskin-im, but ultimately I ended up on hard-coding tigase-swift to lookup and set correct port for my server.