8000 Tech debt: agglayer-node host/port config · Issue #879 · agglayer/agglayer · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Tech debt: agglayer-node host/port config #879
Open
@Ekleog-Polygon

Description

@Ekleog-Polygon

Currently, our configuration takes one ipv4 address to listen on, and 3 ports to listen on the same ipv4 addresses.

We should:

  • Not take one ipv4 address, but any type of ip address — why no ipv6?
  • Allow listening the admin interface on a different network interface than the public-facing interfaces — this means not having the same IP address as the public interfaces
  • Not have that weird thing in tests where we take next_available_addr but then ignore 3/4 of the results — one ip address is completely ignored, and if an ipv6 address is returned then we also ignore it

To do that, the solution I'm suggesting is to, instead of host/port, just take SocketAddr::from_str of a string in the config, for each port. This would give us one SocketAddr config for each of them, and we could easily use the return of next_available_addr there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0