Fix to make a library to work in local subnet

Redmine issue #540