Fix #23

- added 'func' parameter to net.get_origin call in net.connect