def add_peer(self, peer):
if type(peer) == list:<EOL><INDENT>for i in peer:<EOL><INDENT>check_url(i)<EOL><DEDENT>self.PEERS.extend(peer)<EOL><DEDENT>elif type(peer) == str:<EOL><INDENT>check_url(peer)<EOL>self.PEERS.append(peer)<EOL><DEDENT>
Add a peer or multiple peers to the PEERS variable, takes a single string or a list.

:param peer(list or string)