Skip to main content Module serve Copy item path Source use std::borrow::Cow ; ๐ use std::os::unix::net::UnixListener ; ๐ use std::iter::once ; ๐ use std::net::Ipv4Addr ; ๐ use std::net::SocketAddr ; ๐ use std::net::TcpListener ; ๐ use std::path::Path ; ๐ use std::sync::Arc ; ๐ use std::sync::atomic::Ordering ; ๐ use tokio::task::JoinSet; ๐ use tuwunel_core::Err ; ๐ use tuwunel_core::Result ; ๐ use tuwunel_core::debug_info ; ๐ use tuwunel_core::error ; ๐ use tuwunel_core::error ; ๐ use tuwunel_core::info ; ๐ use tuwunel_core::info ; ๐ use tuwunel_core::itertools::Itertools; ๐ use tuwunel_core::utils::sys::is_ipv6_only ; ๐ use tuwunel_service::Services ; ๐ use super::layers ; ๐ use crate::handle::ServerHandle ; ๐ plain ๐ tls ๐ unix ๐ bind_addrs ๐ Binds the addresses nothing answers for yet, extending listening as it
goes so a wildcard entry covers the ones behind it. covers ๐ Whether a listener on one address answers for another, which is the case
when they name the same socket or the listener holds the wider wildcard. listening_addrs ๐ Addresses a listener answers on. An unspecified address stands for every
address of its family, and a dual-stack listener stands for the IPv4
wildcard as well. make_log_addrs ๐ passed_addrs ๐ Addresses the service manager already listens on for us. same_path ๐ Paths naming one socket, however the configuration spelled it. serve ๐ Serve clients systemd_listeners ๐ unpassed_path ๐ Drops the configured unix socket when a passed listener already binds that
path, which would otherwise be unlinked and replaced on the way up.