Added a workaround subnet lookup
Merge pull request #179 from maksimov/2013.07

Added a workaround subnet lookup