summary refs log tree commit diff
path: root/bounce.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-11-10 15:09:32 -0500
committerJune McEnroe <june@causal.agency>2019-11-10 15:09:32 -0500
commit510e4e18d1ce46d8a1ae2ed5eff54304598c1529 (patch)
treec09dcf116541e85fdcb7f245c72ac59b5fb822eb /bounce.c
parentRemove extended-join and invite-notify (diff)
downloadpounce-510e4e18d1ce46d8a1ae2ed5eff54304598c1529.tar.gz
pounce-510e4e18d1ce46d8a1ae2ed5eff54304598c1529.zip
Rename listen to local
Diffstat (limited to '')
-rw-r--r--bounce.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bounce.c b/bounce.c
index bc97cf3..1587d81 100644
--- a/bounce.c
+++ b/bounce.c
@@ -333,14 +333,14 @@ int main(int argc, char *argv[]) {
 	struct SplitPath privSplit = splitPath(privPath);
 	FILE *cert = splitOpen(certSplit);
 	FILE *priv = splitOpen(privSplit);
-	listenConfig(cert, priv);
+	localConfig(cert, priv);
 	fclose(cert);
 	fclose(priv);
 
 	int bind[8];
 	size_t binds = bindPath[0]
-		? listenUnix(bind, ARRAY_LEN(bind), bindPath)
-		: listenBind(bind, ARRAY_LEN(bind), bindHost, bindPort);
+		? localUnix(bind, ARRAY_LEN(bind), bindPath)
+		: localBind(bind, ARRAY_LEN(bind), bindHost, bindPort);
 
 	serverConfig(insecure, clientCert, clientPriv);
 	int server = serverConnect(host, port);
@@ -399,7 +399,7 @@ int main(int argc, char *argv[]) {
 		if (signals[SIGUSR1]) {
 			cert = splitOpen(certSplit);
 			priv = splitOpen(privSplit);
-			listenConfig(cert, priv);
+			localConfig(cert, priv);
 			fclose(cert);
 			fclose(priv);
 			signals[SIGUSR1] = 0;
@@ -417,7 +417,7 @@ int main(int argc, char *argv[]) {
 
 			if (!event.clients[i]) {
 				int fd;
-				struct tls *tls = listenAccept(&fd, event.fds[i].fd);
+				struct tls *tls = localAccept(&fd, event.fds[i].fd);
 				int error = tls_handshake(tls);
 				if (error) {
 					warnx("tls_handshake: %s", tls_error(tls));