network

package
v2.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package network keeps how every connection of icebath is made: the preference for IPv4 the settings ask, applied to the one dial of the tree as the process starts, at each change a person makes and each time the settings are read again

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Network

type Network struct {
	// contains filtered or unexported fields
}

How the connections of this process are made, as the settings of every profile say

func New

func New(cfg *config.Config) *Network

Declares the settings and applies them at once, so it is made before anything of the process dials, then reads them again every few seconds until Close

func (*Network) Close

func (n *Network) Close() error

Stops reading the settings again

func (*Network) IPv4

func (n *Network) IPv4() bool

Whether every connection of icebath tries IPv4 first now

func (*Network) PreferIPv4

func (n *Network) PreferIPv4() (string, error)

Turns Prefer IPv4 on and applies it, as a repair of the doctor does: what it did, in a sentence

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL