def setListenerMode( self, mode ):
        if mode == "client" or mode == "socks":
            self.weAreClient = True
        elif mode == "server" or mode == "ext_server":
            self.weAreClient = False
        else:
            raise ValueError("Invalid listener mode: %s" % mode)
dataset/ETHPy150Open isislovecruft/obfsproxy/obfsproxy/common/transport_config.py/TransportConfig.setListenerMode/original