# std.Io.net: make HostName.validate RFC 1123-compliant · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/efe649b13e582be855376944bac1346426e238d6)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: efe649b13e582be855376944bac1346426e238d6

Requested commit: efe649b13e582be855376944bac1346426e238d6

Commit: efe649b13e582be855376944bac1346426e238d6

Tree: 21b5fbee7d58880fa30d0be03d9b26482b7a7787

Author: Jon Parise

Committer: Andrew Kelley

## Message

```
std.Io.net: make HostName.validate RFC 1123-compliant

The implementation of HostName.validate was too generous. It considered
strings like ".example.com", "exa..mple.com", and "-example.com" to be
valid hostnames, which is incorrect according to RFC 1123 (the currently
accepted standard).

Reviewed-on: https://github.com/ziglang/zig/pull/25710

```

## Parents

- [6069161a51c4672b37c87d8cda06999baf5fef2c](https://git.cafe/gitcafe/zig/commit/6069161a51c4672b37c87d8cda06999baf5fef2c?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/efe649b13e582be855376944bac1346426e238d6?format=markdown)
