Check whether module.legacy is set instead of checking proto format
Add preliminary support for IP (finally)