Compilation fix
Fixed localhost assertion to support .*localhost.*