misplaced paren.

type is not always defined. default is 'internet'.
This is just to see if the type matches. If not it continues.