Changeset 43214 in vbox for trunk/src/VBox/ExtPacks/VNC
- Timestamp:
- Sep 6, 2012 9:16:55 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ExtPacks/VNC/VBoxVNC.cpp
r43213 r43214 497 497 } 498 498 499 rc = RTStrIsIpAddr4(pszTCPAddress); 500 501 if (RT_SUCCESS(rc)) 499 if (RTNetIsIPv4AddrStr(pszTCPAddress)) 502 500 { 503 501 pszServerAddress4 = pszTCPAddress; … … 511 509 } 512 510 513 rc = RTStrIsIpAddr6(pszVNCAddress6, NULL, 0, true, true); 514 515 if (RT_SUCCESS(rc)) 516 { 511 if (RTNetIsIPv6AddrStr(pszVNCAddress6)) 517 512 pszServerAddress6 = pszVNCAddress6; 518 519 }520 513 else 521 {522 514 pszServerAddress6 = szIPv6ListenAll; 523 }524 515 525 516 if (strlen(pszVNCPort6) > 0) … … 534 525 } 535 526 536 rc = RTStrIsIpAddr6(pszTCPAddress, NULL, 0, true, true); 537 538 if (RT_SUCCESS(rc)) 527 if (RTNetIsIPv6AddrStr(pszTCPAddress)) 539 528 { 540 529 pszServerAddress6 = pszTCPAddress; … … 548 537 } 549 538 550 rc = RTStrIsIpAddr4(pszVNCAddress4); 551 552 if (RT_SUCCESS(rc)) 553 { 539 if (RTNetIsIPv4AddrStr(pszVNCAddress4)) 554 540 pszServerAddress4 = pszVNCAddress4; 555 556 }557 541 else 558 {559 542 pszServerAddress4 = szIPv4ListenAll; 560 }561 543 562 544 if (strlen(pszVNCPort4) > 0) … … 637 619 if (!pszServerAddress4) 638 620 { 639 rc = RTStrIsIpAddr4(pszVNCAddress4); 640 641 if (RT_SUCCESS(rc)) 621 if (RTNetIsIPv4AddrStr(pszVNCAddress4)) 642 622 pszServerAddress4 = pszVNCAddress4; 643 623 else … … 646 626 if (!pszServerAddress6) 647 627 { 648 rc = RTStrIsIpAddr6(pszVNCAddress6, NULL, 0, true, true); 649 650 if (RT_SUCCESS(rc)) 628 if (RTNetIsIPv6AddrStr(pszVNCAddress6)) 651 629 pszServerAddress6 = pszVNCAddress6; 652 630 else
Note:
See TracChangeset
for help on using the changeset viewer.