Files @ d11fdaf3e279
Branch filter:

Location: libtransport.git/include/Swiften/TLS/Schannel/SchannelServerContextFactory.cpp - annotation

Sebastian Krzyszkowiak
systemd: wait for network-online.target and add WantedBy=multi-user.target

Thanks to that, "systemctl enable spectrum2" does what expected, that is
makes Spectrum2 start on boot. Also, network.target doesn't tell anything
meaningful - it's just that the network stack is available.
Adding network-online.target makes sure that the network interfaces are up
before starting Spectrum2.
/*
 * Copyright (c) 2011 Soren Dreijer
 * Licensed under the simplified BSD license.
 * See Documentation/Licenses/BSD-simplified.txt for more information.
 */

#include "Swiften/TLS/Schannel/SchannelServerContextFactory.h"
#include "Swiften/TLS/Schannel/SchannelServerContext.h"

namespace Swift {

bool SchannelServerContextFactory::canCreate() const {
	return true;
}

TLSServerContext* SchannelServerContextFactory::createTLSServerContext() {
	return new SchannelServerContext();
}

}