Exemplo n.º 1
0
def make_plugin(config):
    ident_config = IdentConfig(config)

    p = Plugin()
    factory = Factory()
    factory.protocol = IdentProtocol
    factory.user = ident_config.user

    p.add_service(internet.TCPServer(ident_config.port, factory))

    return p