Update osc.c

Adding support for IPv6 connections.