Affected by GO-2024-3304
and 2 other vulnerabilities
GO-2024-3304 : Moby Race Condition vulnerability in github.com/moby/moby
GO-2024-3305 : Moby Race Condition vulnerability in github.com/moby/moby
GO-2024-3311 : NULL Pointer Dereference on moby image history in github.com/moby/moby
Discover Packages
github.com/moby/moby
libnetwork
etchosts
package
Version:
v25.0.7+incompatible
Opens a new window with list of versions in this module.
Published: Oct 21, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Add adds an arbitrary number of Records to an already existing /etc/hosts file
Build function
path is path to host file string required
IP, hostname, and domainname set main record leave empty for no master record
extraContent is an array of extra host records.
Delete deletes an arbitrary number of Records already existing in /etc/hosts file
Drop drops the path string from the path cache
Update all IP addresses where hostname matches.
path is path to host file
IP is new IP address
hostname is hostname to search for to replace IP
Record Structure for a single host record
WriteTo writes record to file and returns bytes written or error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.