Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

how to listen on both IPv4 and IPv6 adress? #308

Open
kobe-koto opened this issue Nov 8, 2024 · 0 comments
Open

how to listen on both IPv4 and IPv6 adress? #308

kobe-koto opened this issue Nov 8, 2024 · 0 comments

Comments

@kobe-koto
Copy link

kobe-koto commented Nov 8, 2024

followed #298 but not working.

mtg version v2.1.7

this is my config:

secret = "7v...."
bind-to = ":58964"

I got this

# mtg run /etc/mtg.toml
mtg: error: cannot init config: cannot parse config: cannot parse a config: empty host: :58964

and trying to listen on IPv6 only:

config:

secret = "7v..."
bind-to = "[::]:58964"

*it just runs, no output

and it does listening on IPv6

# netstat -tunlp | grep mtg
tcp6       0      0 :::58964                :::*                    LISTEN      102755/mtg  

and don't know why I cannot connect it through IPv6 but IPv4 works

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant