Created
September 3, 2014 09:01
-
-
Save shizzard/37b6baae185a54657c00 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resolve_family({_,_,_,_}, auto) -> | |
inet; | |
resolve_family({_,_,_,_,_,_,_,_}, auto) -> | |
inet6; | |
resolve_family(IP, auto) -> | |
throw({error, {strange_family, IP}}); | |
resolve_family(_, F) -> | |
F. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment