diff options
author | Péter Dimitrov <[email protected]> | 2019-06-28 15:09:12 +0200 |
---|---|---|
committer | Péter Dimitrov <[email protected]> | 2019-06-28 15:09:12 +0200 |
commit | c33c958ff5cdc39f7081e3db37cd4fbbbef49843 (patch) | |
tree | 96234a467f00c86c852dcab189e8495074ca58e0 /lib/kernel | |
parent | 5149af57dc17afae1ea97fb939192dd9ccb71d82 (diff) | |
parent | c4146a9e9d9e49e9a913acb9ce37f5816921626a (diff) | |
download | otp-c33c958ff5cdc39f7081e3db37cd4fbbbef49843.tar.gz otp-c33c958ff5cdc39f7081e3db37cd4fbbbef49843.tar.bz2 otp-c33c958ff5cdc39f7081e3db37cd4fbbbef49843.zip |
Merge branch 'maint'
* maint:
Support local sockets with inet:i/0
Diffstat (limited to 'lib/kernel')
-rw-r--r-- | lib/kernel/src/inet.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/kernel/src/inet.erl b/lib/kernel/src/inet.erl index 7940903658..24aff83fbd 100644 --- a/lib/kernel/src/inet.erl +++ b/lib/kernel/src/inet.erl @@ -1645,6 +1645,7 @@ fmt_addr({ok,Addr}, Proto) -> {{0,0,0,0,0,0,0,0},Port} -> "*:" ++ fmt_port(Port, Proto); {{127,0,0,1},Port} -> "localhost:" ++ fmt_port(Port, Proto); {{0,0,0,0,0,0,0,1},Port} -> "localhost:" ++ fmt_port(Port, Proto); + {local, Path} -> "local:" ++ binary_to_list(Path); {IP,Port} -> inet_parse:ntoa(IP) ++ ":" ++ fmt_port(Port, Proto) end. |