=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/nc/socks.c,v retrieving revision 1.30 retrieving revision 1.31 diff -c -r1.30 -r1.31 *** src/usr.bin/nc/socks.c 2019/11/04 17:33:28 1.30 --- src/usr.bin/nc/socks.c 2022/06/08 20:20:26 1.31 *************** *** 1,4 **** ! /* $OpenBSD: socks.c,v 1.30 2019/11/04 17:33:28 millert Exp $ */ /* * Copyright (c) 1999 Niklas Hallqvist. All rights reserved. --- 1,4 ---- ! /* $OpenBSD: socks.c,v 1.31 2022/06/08 20:20:26 djm Exp $ */ /* * Copyright (c) 1999 Niklas Hallqvist. All rights reserved. *************** *** 321,327 **** /* HTTP proxy CONNECT */ /* Disallow bad chars in hostname */ ! if (strcspn(host, "\r\n\t []:") != strlen(host)) errx(1, "Invalid hostname"); /* Try to be sane about numeric IPv6 addresses */ --- 321,327 ---- /* HTTP proxy CONNECT */ /* Disallow bad chars in hostname */ ! if (strcspn(host, "\r\n\t []") != strlen(host)) errx(1, "Invalid hostname"); /* Try to be sane about numeric IPv6 addresses */