Oxen-AI / Oxen

Oxen.ai's core rust library, server, and CLI
https://oxen.ai
Apache License 2.0
202 stars 12 forks source link

Support port for oxen-server running on port other than 80. #343

Closed electic closed 5 months ago

electic commented 5 months ago

I think you guys are doing something great, but ran into an issue.

pub fn url_from_host_and_scheme(
    host: impl AsRef<str>,
    uri: impl AsRef<str>,
    scheme: impl AsRef<str>,
) -> String {
    format!(
        "{}://{}{API_NAMESPACE}{}",
        scheme.as_ref(),
        host.as_ref(),
        uri.as_ref()
    )
}

Does not support ports so if you url scheme is something other than 80, liboxen does not connect.