1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 16:10:08 +01:00

Change valet share to use port 60

Since the current TCP port 88 clashes with Kerberos, changing it to port 60 which IANA shows as unassigned, and other databases show as not being used in general practice.

Several alternates were researched, but show (although limited use, nevertheless possible) clashes with other systems, including ports 47, 81-90, 8080-8090, and 100. Various sources were referenced, and the overall conclusion is that 60 seems to be the safest and least likely to conflict.

Tested against a few limited firewall configs without issue.
Tested with both fresh new valet installs and an older install upgraded from 2.0.x.
This commit is contained in:
Chris Brown
2018-11-11 17:29:02 -05:00
committed by Matt Stauffer
parent 4ca3e0acb4
commit b803a37855
2 changed files with 3 additions and 3 deletions

4
valet
View File

@@ -41,11 +41,11 @@ then
fi
done
# Decide the correct PORT to use according if the site has a secure
# Decide the correct PORT to use according if the site has a secure
# config or not.
if grep --quiet 443 ~/.config/valet/Nginx/$HOST*
then
PORT=88
PORT=60
else
PORT=80
fi