aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/xml
diff options
context:
space:
mode:
authorCarlos Castillo <cookieo9@gmail.com>2015-02-24 02:35:55 -0800
committerAlex Brainman <alex.brainman@gmail.com>2015-02-25 23:16:44 +0000
commit59e546633d5b41f69971bd9f019f5e54c600fa17 (patch)
tree00f41d4932194e365cf3afb9d97ecc4b5f26a853 /src/encoding/xml
parentca0be6f849f227c409b06819d9b2d349a8045098 (diff)
downloadgo-59e546633d5b41f69971bd9f019f5e54c600fa17.tar.xz
os: Use GetComputerNameEx to get Hostname on win32
The existing Hostname function uses the GetComputerName system function in windows to determine the hostname. It has some downsides: - The name is limited to 15 characters. - The name returned is for NetBIOS, other OS's return a DNS name This change adds to the internal/syscall/windows package a GetComputerNameEx function, and related enum constants. They are used instead of the syscall.ComputerName function to implement os.Hostname on windows. Fixes #9982 Change-Id: Idc8782785eb1eea37e64022bd201699ce9c4b39c Reviewed-on: https://go-review.googlesource.com/5852 Reviewed-by: Alex Brainman <alex.brainman@gmail.com> Run-TryBot: Alex Brainman <alex.brainman@gmail.com> Reviewed-by: Carlos Castillo <cookieo9@gmail.com> Reviewed-by: Yasuhiro MATSUMOTO <mattn.jp@gmail.com>
Diffstat (limited to 'src/encoding/xml')
0 files changed, 0 insertions, 0 deletions