Fix configuration file

The module validate uses the function integer() to validate numbers, not
int() as in voluptuous. Also, the method listen_on from the Session
object in libtorrent always require a port range. A single port would be
expressed with the two extrema having the same value.