| 182 | |
| 183 | |
| 184 | string getWebUIDir() |
| 185 | { |
| 186 | string path = path::join(flags.source_dir, "src", "webui"); |
| 187 | |
| 188 | if (!os::exists(path) && searchInstallationDirectory) { |
| 189 | path = path::join(PKGDATADIR, "webui"); |
| 190 | } |
| 191 | |
| 192 | return path; |
| 193 | } |
| 194 | |
| 195 | |
| 196 | Try<net::IP::Network> getNonLoopbackIP() |