[PR #20] [CLOSED] Implement AddHostPerLine function #30

Closed
opened 2026-03-02 05:08:15 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/goodhosts/hostsfile/pull/20
Author: @praveenkumar
Created: 9/10/2021
Status: Closed

Base: masterHead: add_host_perline


📝 Commits (1)

  • fef55a4 Implement AddHostPerLine function

📊 Changes

2 files changed (+34 additions, -0 deletions)

View changed files

📝 hosts.go (+17 -0)
📝 hosts_test.go (+17 -0)

📄 Description

This will try to solve the issue which windows user
is having where they can't have more than 9 hosts for single
IP.

This patch will not break existing Add function so the consumer
of this library have a way to consume either of this function as
per need.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/goodhosts/hostsfile/pull/20 **Author:** [@praveenkumar](https://github.com/praveenkumar) **Created:** 9/10/2021 **Status:** ❌ Closed **Base:** `master` ← **Head:** `add_host_perline` --- ### 📝 Commits (1) - [`fef55a4`](https://github.com/goodhosts/hostsfile/commit/fef55a4ac9f52b7816edc9736f725491ac9db8e8) Implement AddHostPerLine function ### 📊 Changes **2 files changed** (+34 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `hosts.go` (+17 -0) 📝 `hosts_test.go` (+17 -0) </details> ### 📄 Description This will try to solve the issue which windows user is having where they can't have more than 9 hosts for single IP. - https://github.com/goodhosts/hostsfile/issues/18 - https://github.com/code-ready/crc/issues/2710 This patch will not break existing Add function so the consumer of this library have a way to consume either of this function as per need. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 05:08:15 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hostsfile#30
No description provided.