Update Settings.java

Check the 

public static Boolean getRestrictedIp(String name, String ip)

Function

I have added comments in line with the new code.