mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
dial: allow host==0 when net=="unix"
http://codereview.appspot.com/108042
This commit is contained in:
parent
6d558e12b0
commit
5186b55afc
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ p9dial(char *addr, char *local, char *dummy2, int *dummy3)
|
|||
free(buf);
|
||||
return -1;
|
||||
}
|
||||
if(host == 0){
|
||||
if(strcmp(net, "unix") != 0 && host == 0){
|
||||
werrstr("invalid dial address 0.0.0.0 (aka *)");
|
||||
free(buf);
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue