Congenital hydrocele is best treated by