{"action":"created","issue":{"url":"https://api.github.com/repos/minetest/minetest/issues/2604","labels_url":"https://api.github.com/repos/minetest/minetest/issues/2604/labels{/name}","comments_url":"https://api.github.com/repos/minetest/minetest/issues/2604/comments","events_url":"https://api.github.com/repos/minetest/minetest/issues/2604/events","html_url":"https://github.com/minetest/minetest/pull/2604","id":66400934,"number":2604,"title":"Add support for multiple listen addesses","user":{"login":"ShadowNinja","id":3399154,"avatar_url":"https://avatars.githubusercontent.com/u/3399154?v=3","gravatar_id":"","url":"https://api.github.com/users/ShadowNinja","html_url":"https://github.com/ShadowNinja","followers_url":"https://api.github.com/users/ShadowNinja/followers","following_url":"https://api.github.com/users/ShadowNinja/following{/other_user}","gists_url":"https://api.github.com/users/ShadowNinja/gists{/gist_id}","starred_url":"https://api.github.com/users/ShadowNinja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShadowNinja/subscriptions","organizations_url":"https://api.github.com/users/ShadowNinja/orgs","repos_url":"https://api.github.com/users/ShadowNinja/repos","events_url":"https://api.github.com/users/ShadowNinja/events{/privacy}","received_events_url":"https://api.github.com/users/ShadowNinja/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/minetest/minetest/labels/@%20Network","name":"@ Network","color":"009800"},{"url":"https://api.github.com/repos/minetest/minetest/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/minetest/minetest/labels/maintenance","name":"maintenance","color":"009870"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2015-04-05T04:38:51Z","updated_at":"2015-10-16T17:41:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/minetest/minetest/pulls/2604","html_url":"https://github.com/minetest/minetest/pull/2604","diff_url":"https://github.com/minetest/minetest/pull/2604.diff","patch_url":"https://github.com/minetest/minetest/pull/2604.patch"},"body":"  * Ask the OS to assign an unused port instead of:\r\n    - Using a static one (in tests, specifically `30001` and `30003`)\r\n    - Trying a random one that might be used (client outgoing connections)\r\n  * **^** Fixes a few reported issues, but I only found #2344  with a cursory look.\r\n  * Make banning normalize IPv6-mapped IPv4 addresses (so you can't try `1.2.3.4` and then `::ffff:1.2.3.4`).\r\n  * Fix some horrible main menu code (multiple lookups, no popping, using `luaL_check*` for table fields).\r\n  * Move `socket.cpp` into `network` folder.\r\n  * Some style fixes.\r\n  * Lots of stuff that I don't remember right now.\r\n\r\nTo do:\r\n  * [ ] Maybe figure out a nicer format for the `--listen` argument (eg `--listen [::1]:0 --listen [::2]:0` instead of `--listen '[::1]:0 [::2]:0'`)\r\n\r\nTo do later:\r\n  * Fix how `gamedata.port` is stored as a string until just before it's used.\r\n"},"comment":{"url":"https://api.github.com/repos/minetest/minetest/issues/comments/148781970","html_url":"https://github.com/minetest/minetest/pull/2604#issuecomment-148781970","issue_url":"https://api.github.com/repos/minetest/minetest/issues/2604","id":148781970,"user":{"login":"ShadowNinja","id":3399154,"avatar_url":"https://avatars.githubusercontent.com/u/3399154?v=3","gravatar_id":"","url":"https://api.github.com/users/ShadowNinja","html_url":"https://github.com/ShadowNinja","followers_url":"https://api.github.com/users/ShadowNinja/followers","following_url":"https://api.github.com/users/ShadowNinja/following{/other_user}","gists_url":"https://api.github.com/users/ShadowNinja/gists{/gist_id}","starred_url":"https://api.github.com/users/ShadowNinja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShadowNinja/subscriptions","organizations_url":"https://api.github.com/users/ShadowNinja/orgs","repos_url":"https://api.github.com/users/ShadowNinja/repos","events_url":"https://api.github.com/users/ShadowNinja/events{/privacy}","received_events_url":"https://api.github.com/users/ShadowNinja/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T17:41:14Z","updated_at":"2015-10-16T17:41:14Z","body":"@proller: Because then you have to support only one.  On O.S.es where IPV6_V6ONLY defaults to false (some Linux distros) you could do both by selecting the IPv6 address, then but the ban list would add entries with `::ffff:1.2.3.4` which would cease to work if you used a regular IPv4 socket."}}