这是indexloc提供的服务,不要输入任何密码
Skip to content

Use the uri returned by the meta API as host #485

@MomentQYC

Description

@MomentQYC

💡 Summary

There are currently many instances that serve instance pages via a reverse proxy on non-instance domains for various reasons. For example, if an instance's domain name is aaa.com, it could potentially be served at bbb.com or 123.aaa.com. Using Aria in this case will result in incorrect host issues, which can cause a number of anomalies and inconveniences.
The solution is that you should get the real instance domain name from (domain)/api/meta

🥰 Expected Behavior

see above

🤬 Actual Behavior

Users that are supposed to be 123@aaa.com are incorrectly shown as 123@bbb.com or 123@123.aaa.com

📝 Steps to Reproduce

Use the non-instance domain (in this case is bbb.com or 123.aaa.com) and login.

💻 Environment

Not related

Do you want to address this bug yourself?

  • Yes, I will patch the bug myself and send a pull request

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions